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

OAuth2.0 Revoke 7008 token_type_hint enhancement #685

Open
JonathanHuot opened this issue Jul 16, 2019 · 0 comments
Open

OAuth2.0 Revoke 7008 token_type_hint enhancement #685

JonathanHuot opened this issue Jul 16, 2019 · 0 comments

Comments

@JonathanHuot
Copy link
Member

@JonathanHuot JonathanHuot commented Jul 16, 2019

Describe the feature

OAuthlib should try to manage the token_type_hint itself, instead of relying on the application. Every "RFC code" should be in oauthlib and not in the application, which is prone to errors.

Additional context

RFC7008 describe the field as below:

   token_type_hint  OPTIONAL.  A hint about the type of the token
       submitted for revocation.  Clients MAY pass this parameter in
       order to help the authorization server to optimize the token
       lookup.  If the server is unable to locate the token using
       the given hint, it MUST extend its search across all of its
       supported token types.  An authorization server MAY ignore
       this parameter, particularly if it is able to detect the
       token type automatically.

Also, as bonus point, we could handle custom token type, as allowed by the specification.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.