Browse Source

prevent clients from registering with special resource scope

pull/604/head
Justin Richer 11 years ago
parent
commit
5ab516de48
  1. 3
      openid-connect-server/src/main/java/org/mitre/oauth2/service/impl/DefaultSystemScopeService.java

3
openid-connect-server/src/main/java/org/mitre/oauth2/service/impl/DefaultSystemScopeService.java

@ -69,7 +69,8 @@ public class DefaultSystemScopeService implements SystemScopeService {
public boolean apply(String input) {
return (input != null &&
!input.equals(ID_TOKEN_SCOPE) &&
!input.equals(REGISTRATION_TOKEN_SCOPE));
!input.equals(REGISTRATION_TOKEN_SCOPE) &&
!input.equals(RESOURCE_TOKEN_SCOPE));
}
};

Loading…
Cancel
Save