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

oauth2server: token describe / introspection -endpoint #142

Open
hjhsalo opened this issue Aug 8, 2017 · 0 comments
Open

oauth2server: token describe / introspection -endpoint #142

hjhsalo opened this issue Aug 8, 2017 · 0 comments
Milestone

Comments

@hjhsalo
Copy link
Contributor

hjhsalo commented Aug 8, 2017

Should invenio-oauth2server have an endpoint, where registered OAuth2 application can send a token for introspection?

Basically the endpoint would "describe" the token by returning the scopes associated to the token and possibly other information as well (e.g. lifetime, issued at, etc.)
Similar to RFC 7662 - OAuth 2.0 Token Introspection

Alternative could be to return scopes associated to a certain token on every request made to the invenio-oauth2server API. Slack, for example, does this for their Web API using a 'X-OAuth-Scopes'-header:

X-OAuth-Scopes: identity.basic,reactions:read

(https://api.slack.com/docs/oauth)

@hjhsalo hjhsalo added this to the someday milestone Aug 8, 2017
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

No branches or pull requests

1 participant