Skip to content

Add custom or generic request validator for refresh token grant #1941

Open
@anekar422221

Description

@anekar422221

Expected Behavior
Similar to OAuth2ClientCredentialsAuthenticationValidator there should be a validator for Refresh token grant

Current Behavior
Currently there is no support for validating the request parameters for the RefreshToken grant.

Context
In our particular use case, I would like to validate the scopes that are passed in the request as params, against the registered client's scopes during the flow.

Not only scopes, we also want to validate several other request params which are needed for our use-cases like - validating the tenant information of refresh token so that I can prevent cross-tenant refresh token exchange.
That is the reason I am looking for a request validator similar to what you have shared above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions