Skip to content

Commit

Permalink
removing duplicate open id scope (keycloak#26542)
Browse files Browse the repository at this point in the history
Signed-off-by: ShefeeqPM <86718986+ShefeeqPM@users.noreply.github.com>
Signed-off-by: Michal Hajas <mhajas@redhat.com>
Co-authored-by: Michal Hajas <mhajas@redhat.com>
  • Loading branch information
ShefeeqPM and mhajas authored Feb 2, 2024
1 parent 5d6646b commit 65c7cd6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ public Object getConfig() {
.filter(clientScope -> Objects.equals(OIDCLoginProtocol.LOGIN_PROTOCOL, clientScope.getProtocol()))
.map(ClientScopeModel::getName)
.collect(Collectors.toList());
scopeNames.add(0, OAuth2Constants.SCOPE_OPENID);
if (!scopeNames.contains(OAuth2Constants.SCOPE_OPENID)) {
scopeNames.add(0, OAuth2Constants.SCOPE_OPENID);
}
config.setScopesSupported(scopeNames);
}

Expand Down

0 comments on commit 65c7cd6

Please sign in to comment.