Propagate Exception in NimbusReactiveJwtDecoder
Fixes: gh-6823
This commit is contained in:
parent
1ed9e3a1c6
commit
047bd16b51
|
@ -76,7 +76,7 @@ public final class JwtReactiveAuthenticationManager implements ReactiveAuthentic
|
|||
|
||||
private OAuth2AuthenticationException onError(JwtException e) {
|
||||
OAuth2Error invalidRequest = invalidToken(e.getMessage());
|
||||
return new OAuth2AuthenticationException(invalidRequest, e.getMessage());
|
||||
return new OAuth2AuthenticationException(invalidRequest, invalidRequest.getDescription(), e);
|
||||
}
|
||||
|
||||
private static OAuth2Error invalidToken(String message) {
|
||||
|
|
Loading…
Reference in New Issue