Skip to content

[lexik_jwt_authentication] Add recipe for v2.5 #425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Jun 30, 2018

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jun 29, 2018

Q A
License MIT

The change requiring a new version of the recipe is that the public_key_path and private_key_path have been renamed to public_key and secret_key.

Motivation for this naming change is that they now both accept a raw key as value, which allows storing the raw key itself as an env var and configure the bundle like secret_key: %env(JWT_PRIVATE_KEY)% or use whatever custom env var processor to resolve the raw key (I need some feedbacks before using this for the recipe config). Additionally HMAC support was added, which requires only secret_key to be set with a raw secret string.
Lastly, only one of the key is required by the config tree (think SSO, server needs the secret key and clients need the public one, no side require to hold both, clients must not know about the secret key).

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

@ghost ghost merged commit dc38f00 into symfony:master Jun 30, 2018
ghost pushed a commit that referenced this pull request Jun 30, 2018
"JWT_PASSPHRASE": "%generate(secret)%"
},
"gitignore": [
"/%CONFIG_DIR%/jwt/*.pem"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we recommend to put these keys in var/jwt actually?

@chalasr chalasr deleted the lexikjwt-v2.5 branch June 30, 2018 09:39
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants