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

[11.x] Allow using custom authorization validator #1654

Closed
wants to merge 1 commit into from
Closed

[11.x] Allow using custom authorization validator #1654

wants to merge 1 commit into from

Conversation

hafezdivandari
Copy link
Contributor

@hafezdivandari hafezdivandari commented Apr 17, 2023

Oauth2 Server allows passing a custom authorization validator (instance of AuthorizationValidatorInterface) to the constructor of ResourceServer class or pass null to use the default BearerTokenValidator.

Devs usually override BearerTokenValidator class to add additional params to the request when validating the token with custom claims, e.g. as this PR intends to make this easier:

Or as mentioned here:

This PR allows using custom authorization validator.

@hafezdivandari hafezdivandari marked this pull request as ready for review April 17, 2023 16:21
@taylorotwell
Copy link
Member

I'm getting a bit weary of all the Passport deep customization PRs.

@hafezdivandari hafezdivandari deleted the 11.x-patch-3 branch April 17, 2023 18:26
@parallels999
Copy link

I really need this 😢

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