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

Custumize request attributes in BearerTokenValidator #1183

Closed
freebuu opened this issue Jan 15, 2021 · 1 comment
Closed

Custumize request attributes in BearerTokenValidator #1183

freebuu opened this issue Jan 15, 2021 · 1 comment
Labels

Comments

@freebuu
Copy link

freebuu commented Jan 15, 2021

Hello! I'm looking for a way to add custom request attributes for token.
The problem is here:
https://github.com/thephpleague/oauth2-server/blob/master/src/AuthorizationValidators/BearerTokenValidator.php#L120
There is no option to add attributes except for write my own implementation of validator.

@Sephster
Copy link
Member

At the moment this is the only way sorry. Hoping to get custom claims added in soon though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants