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

Added setPayload to JWTDecodedEvent analogous to JWTCreatedEvent. #433

Merged
merged 2 commits into from
Jan 25, 2018
Merged

Added setPayload to JWTDecodedEvent analogous to JWTCreatedEvent. #433

merged 2 commits into from
Jan 25, 2018

Conversation

vgeyer
Copy link
Contributor

@vgeyer vgeyer commented Jan 8, 2018

This is usefull to manipulate the payload after decoding.

Example usage could be if attributes are encrypted while the JWTCreatedEvent is triggered and should be decrypted while decoding.

@vgeyer
Copy link
Contributor Author

vgeyer commented Jan 22, 2018

Any news on this?

/**
* @param array $payload
*/
public function setPayload($payload)
Copy link
Collaborator

Choose a reason for hiding this comment

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

array typehint is missing

@vgeyer
Copy link
Contributor Author

vgeyer commented Jan 22, 2018

@chalasr pardon me. :-)

@vgeyer vgeyer closed this Jan 22, 2018
@vgeyer vgeyer reopened this Jan 22, 2018
@chalasr
Copy link
Collaborator

chalasr commented Jan 25, 2018

Thank you @vgeyer.

@chalasr chalasr merged commit f71a753 into lexik:master Jan 25, 2018
chalasr added a commit that referenced this pull request Jan 25, 2018
…tedEvent. (Victor J. C. Geyer, vgeyer)

This PR was merged into the 2.x-dev branch.

Discussion
----------

Added setPayload to JWTDecodedEvent analogous to JWTCreatedEvent.

This is usefull to manipulate the payload after decoding.

Example usage could be if attributes are encrypted while the JWTCreatedEvent is triggered and should be decrypted while decoding.

Commits
-------

f71a753 Added missing typehint
3f0ee8f Added setPayload to JWTDecodedEvent analogous to JWTCreatedEvent.
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