using nimbusds's new data-type specific claim getter.
parent
c7495a6ae3
commit
a1d6901bcc
|
@ -403,8 +403,7 @@ public class OIDCAuthenticationFilter extends AbstractAuthenticationProcessingFi
|
|||
}
|
||||
|
||||
// compare the nonce to our stored claim
|
||||
// would be nice to have a getClaimAsString() kind of method from nimbus..
|
||||
String nonce = (String) idClaims.getClaim("nonce");
|
||||
String nonce = idClaims.getStringClaim("nonce");
|
||||
if (Strings.isNullOrEmpty(nonce)) {
|
||||
|
||||
logger.error("ID token did not contain a nonce claim.");
|
||||
|
|
Loading…
Reference in New Issue