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

pull/477/head
William Kim 2013-08-09 10:06:01 -04:00
parent c7495a6ae3
commit a1d6901bcc
1 changed files with 1 additions and 2 deletions

View File

@ -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.");