File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ private Jwt createJwt(String token, JWT parsedJwt) {
164
164
catch (RemoteKeySourceException ex ) {
165
165
this .logger .trace ("Failed to retrieve JWK set" , ex );
166
166
if (ex .getCause () instanceof ParseException ) {
167
- throw new JwtException (String .format (DECODING_ERROR_MESSAGE_TEMPLATE , "Malformed Jwk set" ));
167
+ throw new JwtException (String .format (DECODING_ERROR_MESSAGE_TEMPLATE , "Malformed Jwk set" ), ex );
168
168
}
169
169
throw new JwtException (String .format (DECODING_ERROR_MESSAGE_TEMPLATE , ex .getMessage ()), ex );
170
170
}
@@ -175,7 +175,7 @@ private Jwt createJwt(String token, JWT parsedJwt) {
175
175
catch (Exception ex ) {
176
176
this .logger .trace ("Failed to process JWT" , ex );
177
177
if (ex .getCause () instanceof ParseException ) {
178
- throw new BadJwtException (String .format (DECODING_ERROR_MESSAGE_TEMPLATE , "Malformed payload" ));
178
+ throw new BadJwtException (String .format (DECODING_ERROR_MESSAGE_TEMPLATE , "Malformed payload" ), ex );
179
179
}
180
180
throw new BadJwtException (String .format (DECODING_ERROR_MESSAGE_TEMPLATE , ex .getMessage ()), ex );
181
181
}
You can’t perform that action at this time.
0 commit comments