Misleading manifestation of error condition #9395
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Expected Behavior
I would expect a 5xx series HTTP response after encountering the stack trace below.
Current Behavior
Instead, the stack trace below manifests itself as a 401 HTTP response.
Context
pom.xml
stack trace snippet
In this case, our Resource Server encounters a problem connecting to the Authorization Server, so from the perspective of the Resource Server trying to connect to the Authorization Server, I would expect this condition to result in a 5xx HTTP status to indicate to the client who sent the JWT to the Resource Server that there is a problem on the server side and not with the JWT itself.
The text was updated successfully, but these errors were encountered: