Skip to content

Commit

Permalink
oxAuth #955
Browse files Browse the repository at this point in the history
  • Loading branch information
qbert2k committed Dec 5, 2018
1 parent d8e2c8c commit 27e3024
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -46,6 +46,11 @@ public Set<String> checkScopesPolicy(Client client, String scope) {
final String[] scopesRequested = scope.split(" ");
final String[] scopesAllowed = client.getScopes();

// ocAuth #955
if (scopesAllowed == null) {
return grantedScopes;
}

for (String scopeRequested : scopesRequested) {
if (StringUtils.isNotBlank(scopeRequested)) {
for (String scopeAllowedDn : scopesAllowed) {
Expand Down

0 comments on commit 27e3024

Please sign in to comment.