Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Add ErrorDescription to result of RefreshTokenAsync error #206

Merged
merged 2 commits into from
Mar 26, 2020

Conversation

francoishill
Copy link
Contributor

The response.ErrorDescription contains additional info to the response.Error. This is very valuable especially since invalid_grant error is a bucket for a number of errors. For example "invalid refresh token", "refresh token expired", "server clock out of sync".

Refer to this post for more examples of what an invalid_grant error could be.

This change was tested locally and does indeed allow us (as a consumer of this OIDC library) to get access to the ErrorDescription, which in our case is an "Invalid refresh token" error. Without this fix we only get invalid_grant with no additional information.

@leastprivilege leastprivilege merged commit 378b85f into DuendeArchive:master Mar 26, 2020
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants