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

Allow appending custom jwt token data to the request #1363

Closed
wants to merge 1 commit into from

Conversation

parallels999
Copy link

@parallels999 parallels999 commented Aug 2, 2023

Currently, it's easy to implement the convertToJWT method in the AccessTokenEntityInterface implementation to add data to the JWT. However, i don't see any solution, except creating a new implementation of BearerTokenValidator, to add additional attributes from the token, to the returning ServerRequestInterface object.

I think this PR can provide a way to simply override the BearerTokenValidator::appendAttributesFromClaims() method and pass the custom BearerTokenValidator instance to the ResourceServer instance.

Complement of #1328
Alternative of #851

@parallels999
Copy link
Author

Closed because #1328 added the same now

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.

1 participant