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 JWTEncodedEvent so JWT string is available after its creation #73

Merged
merged 1 commit into from
Jul 8, 2015

Conversation

9orky
Copy link
Contributor

@9orky 9orky commented Jul 4, 2015

Sometimes this is useful (or even essential) to get JWT string right after it is created. This PR introduces new type of event - JWTEncodedEvent which is being dispatched right after JWT is created (encoded) and contains JWT string.

@fesor
Copy link

fesor commented Jul 6, 2015

Can you provide use cases?

@9orky
Copy link
Contributor Author

9orky commented Jul 6, 2015

Of course :-) We need to persist JWT so it's possible to check if user's token is valid. To avoid hitting the backend this check will be done from varnish level. So if we want to store JWT string representation we need to know its value when it's created.

@slashfan
Copy link
Contributor

slashfan commented Jul 8, 2015

Nice addition. Ok for merge.

slashfan added a commit that referenced this pull request Jul 8, 2015
add JWTEncodedEvent so JWT string is available after its creation
@slashfan slashfan merged commit fb8c731 into lexik:master Jul 8, 2015
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.

3 participants