removing duplicate open id scope (#26542)
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>
This commit is contained in:
parent
5d6646b691
commit
65c7cd6008
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ public class OIDCWellKnownProvider implements WellKnownProvider {
|
|||
.filter(clientScope -> Objects.equals(OIDCLoginProtocol.LOGIN_PROTOCOL, clientScope.getProtocol()))
|
||||
.map(ClientScopeModel::getName)
|
||||
.collect(Collectors.toList());
|
||||
if (!scopeNames.contains(OAuth2Constants.SCOPE_OPENID)) {
|
||||
scopeNames.add(0, OAuth2Constants.SCOPE_OPENID);
|
||||
}
|
||||
config.setScopesSupported(scopeNames);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue