Skip to content

Conversation

@YoitoFes
Copy link
Contributor

@YoitoFes YoitoFes commented Nov 2, 2024

I found that http response body is also helpful for http clients to handle error.

For instance, Keycloak responds with the body { 'error': 'invalid_grant', 'error_description': 'Token is not active' } to a expired/revolked refresh token. The error handler can parse the body and consider the error as a token expiration.

To enable the error handling with http response body, add it to HttpTokenResponseException.

Thank you.

Because response body is also helpful for error handler.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
@splitbrain splitbrain merged commit a83bf7e into cosmocode:master Nov 2, 2024
@YoitoFes YoitoFes deleted the add_respbody_to_excp branch November 2, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants