We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, if the refresh token is revocated, we get a 5xx error on authentication. It is not really "unexpected", we should handle it properly.
Handle that properly : the only solution may be just to inform the frontend that it has to fully reauthenticate, so for instance with a 403.
The text was updated successfully, but these errors were encountered:
The error looks like:
unexpected error: oauth2: cannot fetch token: 401 Unauthorized\nResponse: {\"error\":\"invalid_request\",\"message\":\"The refresh token is invalid.\",\"hint\":\"Token has been revoked\"}, stack trace: goroutine 1 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\[ngithub.com/France-ioi/AlgoreaBackend/v2/app/service.AppHandler.ServeHTTP.func1()](http://ngithub.com/France-ioi/AlgoreaBackend/v2/app/service.AppHandler.ServeHTTP.func1())\n\t/home/circleci/proje
Sorry, something went wrong.
zenovich
Successfully merging a pull request may close this issue.
Motivations
Currently, if the refresh token is revocated, we get a 5xx error on authentication. It is not really "unexpected", we should handle it properly.
Subtasks
Handle that properly : the only solution may be just to inform the frontend that it has to fully reauthenticate, so for instance with a 403.
The text was updated successfully, but these errors were encountered: