parent
9d55a64465
commit
2c92496911
|
@ -17,7 +17,7 @@
|
||||||
package org.springframework.security.config.oauth2.client.oidc;
|
package org.springframework.security.config.oauth2.client.oidc;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.Arrays;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.security.oauth2.client.registration.ClientRegistration;
|
import org.springframework.security.oauth2.client.registration.ClientRegistration;
|
||||||
|
@ -120,7 +120,7 @@ public final class OidcConfigurationProvider {
|
||||||
Scope scope = metadata.getScopes();
|
Scope scope = metadata.getScopes();
|
||||||
if (scope == null) {
|
if (scope == null) {
|
||||||
// If null, default to "openid" which must be supported
|
// If null, default to "openid" which must be supported
|
||||||
return Arrays.asList(OidcScopes.OPENID);
|
return Collections.singletonList(OidcScopes.OPENID);
|
||||||
} else {
|
} else {
|
||||||
return scope.toStringList();
|
return scope.toStringList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue