-
Notifications
You must be signed in to change notification settings - Fork 370
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
Introspection of refresh token during access token validation #207
Comments
Token introspection RFC allows both refresh and access token validation :) I find this confusing as well, but see for yourself: https://tools.ietf.org/html/rfc7662#section-2.1 |
Right so that parameter is the token type hint. I'm still looking for a way for the introspection endpoint to only validate access tokens and ignore refresh tokens as these shouldn't be accepted by the resource server. Would bringing the warden strategy from hydra into fosite as a custom factory be useful or is too much outside the oauth2 standard? |
Hm, maybe make this configurable in the standard validator? The token_hint is not binding, only something to reduce processing time, don't rely on it :) |
Addressed and closed in #208 |
According to oauth2 the refresh token is only used to generate a new access token and not read/write content on the resource server. As per the spec RFC 6749 section 1.5
I am using the introspect token method in http middleware to validate access tokens, however this line allows refresh tokens to pass as well: https://github.com/ory/fosite/blob/master/handler/oauth2/introspector.go#L29.
Is my conclusion right that it would be better to check the passed in
tokenType
explicitly?The text was updated successfully, but these errors were encountered: