Propagate Exception in NimbusReactiveJwtDecoder

Fixes: gh-6823
This commit is contained in:
Josh Cummings 2019-05-08 17:25:02 -06:00
parent 1ed9e3a1c6
commit 047bd16b51
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 1 additions and 1 deletions

View File

@ -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) {