echo back requested scopes in error thrown by validator, closes #708
parent
da72ce02ad
commit
31d5e3ad0e
|
@ -49,7 +49,7 @@ public class StructuredScopeAwareOAuth2RequestValidator implements OAuth2Request
|
||||||
if (requestedScopes != null && !requestedScopes.isEmpty()) {
|
if (requestedScopes != null && !requestedScopes.isEmpty()) {
|
||||||
if (clientScopes != null && !clientScopes.isEmpty()) {
|
if (clientScopes != null && !clientScopes.isEmpty()) {
|
||||||
if (!scopeService.scopesMatch(clientScopes, requestedScopes)) {
|
if (!scopeService.scopesMatch(clientScopes, requestedScopes)) {
|
||||||
throw new InvalidScopeException("Invalid scope", clientScopes);
|
throw new InvalidScopeException("Invalid scope; requested:" + requestedScopes, clientScopes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue