-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Cookie not created automatically #760
Comments
Hey, For backward compatibility reasons, we can't enable the feature based on the configured extractor (since one could have a similar cookie-adding logic which could break when upgrading). For enabling this feature, you need to set another config option: token_extractors:
cookie:
enabled: true
name: BEARER
# ...
set_cookies:
BEARER: ~
# Full config with defaults:
# BEARER:
# lifetime: null (defaults to token ttl)
# samesite: lax
# path: /
# domain: null (null means automatically set by symfony) |
If you don't mind, I'll keep this issue open as a reminder, we need to document the new option (PR welcome :) ) |
That's perfect, thank you. I thought there might be some more configuration required.
Not a problem at all :) |
PR submitted |
Fixed by #763, Thank you very much @RalpinMcDjango |
Hi guys,
As i understand since #753 the bundle should automatically return a secure and httpOnly cookie with the name provided in the config YAML.
This doesn't appear to be working on my environment right now. I'm testing this via Postman using Symfony 5 as the framework.
lexik_jwt_authenctication.yaml
token extraction settings
Any ideas why this might not be working as expected?
The text was updated successfully, but these errors were encountered: