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

Spec compliance: invalid_request returned when refresh token invalid #993

Closed
jacobweber opened this issue Feb 5, 2019 · 2 comments
Closed

Comments

@jacobweber
Copy link

jacobweber commented Feb 5, 2019

According to the OAuth2 spec, when you're using the refresh_token grant and the refresh token has expired, it should return an invalid_grant error. But this server actually returns a invalid_request error.

       invalid_grant
              The provided authorization grant (e.g., authorization
              code, resource owner credentials) or refresh token is
              invalid, expired, revoked, does not match the redirection
              URI used in the authorization request, or was issued to
              another client.
@jacobweber jacobweber changed the title Spec compliance: invalid_request return when refresh token invalid Spec compliance: invalid_request returned when refresh token invalid Feb 5, 2019
@Sephster
Copy link
Member

Sephster commented Feb 5, 2019

Well spotted. Thanks for finding this issue @jacobweber

@Sephster
Copy link
Member

Fixed in PR #1042

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

No branches or pull requests

2 participants