fixed error messages in auth request manager

pull/324/merge
Justin Richer 2013-04-24 12:10:59 -04:00
parent 94aa279290
commit ce2c90fb30
1 changed files with 2 additions and 2 deletions

View File

@ -142,13 +142,13 @@ public class ConnectAuthorizationRequestManager implements AuthorizationRequestM
ClientDetailsEntity client = clientDetailsService.loadClientByClientId(clientId); ClientDetailsEntity client = clientDetailsService.loadClientByClientId(clientId);
if (client.getJwksUri() == null) { if (client.getJwksUri() == null) {
throw new InvalidClientException("Client must have a JWK URI registered to use request objects."); throw new InvalidClientException("Client must have a JWKS URI registered to use request objects.");
} }
// check JWT signature // check JWT signature
JwtSigningAndValidationService validator = validators.get(client.getJwksUri()); JwtSigningAndValidationService validator = validators.get(client.getJwksUri());
if (validator == null) { if (validator == null) {
throw new InvalidClientException("Client must have a JWK URI registered to use request objects."); throw new InvalidClientException("Unable to create signature validator for client's JWKS URI: " + client.getJwksUri());
} }
if (!validator.validateSignature(jwsObject)) { if (!validator.validateSignature(jwsObject)) {