Browse Source

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

pull/477/head
William Kim 11 years ago
parent
commit
a1d6901bcc
  1. 3
      openid-connect-client/src/main/java/org/mitre/openid/connect/client/OIDCAuthenticationFilter.java

3
openid-connect-client/src/main/java/org/mitre/openid/connect/client/OIDCAuthenticationFilter.java

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