-
-
Notifications
You must be signed in to change notification settings - Fork 497
[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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
"JWT_PASSPHRASE": "%generate(secret)%" | ||
}, | ||
"gitignore": [ | ||
"/%CONFIG_DIR%/jwt/*.pem" |
There was a problem hiding this comment.
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?
The change requiring a new version of the recipe is that the
public_key_path
andprivate_key_path
have been renamed topublic_key
andsecret_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 onlysecret_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).