Skip to content
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

Add custom data to token #6

Open
hiniesta opened this issue Aug 4, 2015 · 0 comments
Open

Add custom data to token #6

hiniesta opened this issue Aug 4, 2015 · 0 comments

Comments

@hiniesta
Copy link

hiniesta commented Aug 4, 2015

Thanks very much for your work!
I would like to add more data to the token, such as userId. I have follow https://github.com/lexik/LexikJWTAuthenticationBundle/blob/master/Resources/doc/2-data-customization.md and add in config.yml:

services:
uaw_rest.event.jwt_created_listener:
class: UAW\Bundle\RestBundle\EventListener\JWTCreatedListener
tags:
- { name: kernel.event_listener, event: lexik_jwt_authentication.on_jwt_created, method: onJWTCreated }

but class JWTCreatedListener.php is not executed. Any idea?

Thanks!

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

No branches or pull requests

1 participant