prevent clients from registering with special resource scope

pull/604/head
Justin Richer 2014-05-26 17:39:20 -04:00
parent c34357a433
commit 5ab516de48
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}
};