echo back requested scopes in error thrown by validator, closes #708

pull/803/merge
Justin Richer 2015-05-13 16:55:28 -04:00
parent da72ce02ad
commit 31d5e3ad0e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class StructuredScopeAwareOAuth2RequestValidator implements OAuth2Request
if (requestedScopes != null && !requestedScopes.isEmpty()) {
if (clientScopes != null && !clientScopes.isEmpty()) {
if (!scopeService.scopesMatch(clientScopes, requestedScopes)) {
throw new InvalidScopeException("Invalid scope", clientScopes);
throw new InvalidScopeException("Invalid scope; requested:" + requestedScopes, clientScopes);
}
}
}