Skip to content

Commit

Permalink
Add console scopes to admin role
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Oct 26, 2023
1 parent 0906bca commit 12266dd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ private List<String> getInternalScopes(String tenantDomain) throws IdentityAppli
try {
List<Scope> scopes = ApplicationManagementServiceComponentHolder.getInstance()
.getAPIResourceManager().getScopesByTenantDomain(tenantDomain, "name sw internal_");
List<Scope> consoleScopes = ApplicationManagementServiceComponentHolder.getInstance()
.getAPIResourceManager().getScopesByTenantDomain(tenantDomain, "name sw console:");
scopes.addAll(consoleScopes);
return scopes.stream().map(Scope::getName).collect(Collectors.toCollection(ArrayList::new));
} catch (APIResourceMgtException e) {
throw new IdentityApplicationManagementException("Error while retrieving internal scopes for tenant " +
Expand Down

0 comments on commit 12266dd

Please sign in to comment.