-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Why is Doorkeeper returning expired authorization codes? #882
Comments
We are seeing the same problem. I believe the root of the problem is probably here:
More than likely it should check to ensure the token is not already expired before returning it. |
Is there a reason that method isn't using the
|
@theycallmeswift it actually starts there and then eventually winds up at the method i pointed out I believe. For us it goes |
@heavysixer are you seeing this with access tokens or auth codes? We're seeing it for auth codes which uses a different mixin. |
@theycallmeswift Doorkeeper is returning expired |
@heavysixer yeah, sounds like we're encountering different issues then. My issue is related to Authorization Codes being expired. May be connected somehow though. |
Hi @theycallmeswift . Have you try to update Doorkeeper to a newer version? I take a look to the Could you debug the Doorkeeper code? Or maybe provide more details about yours. |
Hi @theycallmeswift. Any news here? |
Hi @theycallmeswift . Can you please clarify what request was invoked and returned expired code? Maybe you can provide some additional info? |
@nbulaj at this point, I don't have any additional info to provide. This intermittent issue still persists but has proven impossible for me to recreate. Please let me know if there are any specific queries or steps I can take that would be helpful |
It seems like a stale issue. Without steps to reproduce we can't fix it. So currently I need to close the issue, but feel free to reopen it if some additional details will be available. |
I've got an OAuth API using Doorkeeper 3.1.0. For a small number of users (~5%) when they request an authorization code, the API is returning an expired or revoked code.
For example, here's a line from today's server logs (2016-09-17):
When I look at that token in the database, I see that it was created yesterday and revoked yesterday as well:
Why would doorkeeper send users an expired or revoked token?
The text was updated successfully, but these errors were encountered: