OIDC Token Validation Responses #55065
Closed
MatthewThomasTiani
started this conversation in
Community
Replies: 1 comment 2 replies
|
Hi, in dev mode more info should be returned. In prod, Quarkus OIDC can't do it to avoid leaking details that may be used to narrow down the attack surface. You can register a custom AuthenticationFailedException JAX-RS exception mapper to customize a response |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am writing an SSO application where I receive a bearer token generated in an external system, I perform validation, I then re-issue a token our services support, and then redirect the client to the relevant application.
In my application, I am using
quarkus.oidcto validate a bearer token, and on a failure, the HTTP response provides very limited information to the client.I have developed a SecurityEvent observer to log the error in question, which is great for me when debugging and supporting customers, e.g.
However, it would be nice to add an
error_descriptionto the already existing HTTP response so the client can have some relevant information they can act on. I believe this is specified in RFC6750Apologies if I have completely missed how to do this, but I have searched the documentation and the PRs/Discussion threads for the answer and have come up short.
Any help would be appreciated!
Thanks,
Matthew
All reactions