using nimbusds's new data-type specific claim getter.

pull/477/head
William Kim 11 years ago
parent c7495a6ae3
commit a1d6901bcc

@ -403,8 +403,7 @@ public class OIDCAuthenticationFilter extends AbstractAuthenticationProcessingFi
} }
// compare the nonce to our stored claim // compare the nonce to our stored claim
// would be nice to have a getClaimAsString() kind of method from nimbus.. String nonce = idClaims.getStringClaim("nonce");
String nonce = (String) idClaims.getClaim("nonce");
if (Strings.isNullOrEmpty(nonce)) { if (Strings.isNullOrEmpty(nonce)) {
logger.error("ID token did not contain a nonce claim."); logger.error("ID token did not contain a nonce claim.");

Loading…
Cancel
Save