Closed Chappie74 closed 1 year ago
@Chappie74 maybe you could upload your code somewhere and I could replicate from your repo?
Update I managed to replicate it. Soon I will publish a new release. Meanwhile you can use the master commit in your application and it should be fixed.
Describe the bug An error is thrown when trying to get a new access token using
refresh_token
grant of a revoked token.To Reproduce Steps to reproduce the behavior:
/auth/token
(password
grant), get arefresh_token
and anaccess_token
auth/revoke-token
./auth/token
(refresh_token
grant)oauth2_provider.models.AccessToken.DoesNotExist: AccessToken matching query does not exist.
Expected behavior I expect the error to be handled silently, and a probably return 400 status code, with message
invalid grant
.Screenshots