-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement
Milestone
Description
In nearly all cases, NimbusJwtDecoder
and NimbusReactiveJwtDecoder
throw a JwtException
when something goes wrong.
However, this makes it tricky to differentiate between invalid tokens and invalid application state.
One way to improve this would be to introduce a new exception that extends JwtException
. Like BadCredentialsException
, BadJwtException
could be a good name.
Then, if the exception is BadJwtException
, the application can know that it's an invalid token instead of invalid application state
Metadata
Metadata
Assignees
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement