Closed gongzelong0718 closed 8 months ago
I have the same problem with the Spring authorization-server on branch 6.2.x (https://github.com/spring-projects/spring-security-samples/blame/6.2.x/servlet/spring-boot/java/oauth2/authorization-server/src/main/java/example/OAuth2AuthorizationServerSecurityConfiguration.java)
The issue is already fixed on main branch (https://github.com/spring-projects/spring-security-samples/blame/main/servlet/spring-boot/java/oauth2/authorization-server/src/main/java/example/OAuth2AuthorizationServerSecurityConfiguration.java):
OAuth2AuthorizationServerSecurityConfiguration.java (Line 73)
http.getConfigurer(OAuth2AuthorizationServerConfigurer.class).oidc(Customizer.withDefaults()); // Enable OpenID Connect 1.0```
https://github.com/spring-projects/spring-security-samples/tree/6.2.x/servlet/spring-boot/java/oauth2/login#spring-login
But from my test, after authenticating with your credentials (user and password by default), it shows in the page http://127.0.0.1:8080/login?error
[invalid_scope] OpenID Connect 1.0 authentication requests are restricted.
I checked that the scope has profile.
Is it an issue?