/** {@inheritDoc} */ public Set<String> validateRefreshTokenScope( ClientRegistration clientRegistration, Set<String> requestedScope, Set<String> tokenScope, OAuth2Request request) throws ServerException, InvalidScopeException { return scopeValidator.scopeRequestedForRefreshToken( requestedScope, clientRegistration.getAllowedScopes(), tokenScope, clientRegistration.getDefaultScopes()); }
/** {@inheritDoc} */ public Set<String> validateAuthorizationScope( ClientRegistration clientRegistration, Set<String> scope, OAuth2Request request) throws ServerException, InvalidScopeException { return scopeValidator.scopeToPresentOnAuthorizationPage( scope, clientRegistration.getAllowedScopes(), clientRegistration.getDefaultScopes()); }