<!-- ****************** Deprecation Notice ****************** The Spring Security OAuth project is deprecated. The latest OAuth 2.0 support is provided by Spring Security. See the OAuth 2.0 Migration Guide https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Migration-Guide --> <!-- For Security Vulnerabilities, please use https://spring.io/security-policy --> ### Summary <!-- Unresolvable circular reference error for Oauth2 Token Server with Springboot 2.6.3 --> ### Actual Behavior <!-- Wired the OAuth with @EnableAuthorizationService under springboot 2.6.3 --> ### Expected Behavior <!-- Springboot can start. --> ### Configuration <!-- @Configuration @EnableAuthorizationServer public class OAuth2AuthorizationServer extends AuthorizationServerConfigurerAdapter { @Override public void configure(AuthorizationServerSecurityConfigurer security) throws Exception { security .tokenKeyAccess("permitAll()") .checkTokenAccess("isAuthenticated()") .allowFormAuthenticationForClients(); } } --> ### Version <!-- Springboot 2.6.3. spring-security-oauth2-autoconfigure 2.6.3. It works on Springboot 2.4.13 and spring-security-oauth2-autoconfigure 2.4.13 --> ### Sample <!-- @Configuration @EnableAuthorizationServer public class OAuth2AuthorizationServer extends AuthorizationServerConfigurerAdapter { @Override public void configure(AuthorizationServerSecurityConfigurer security) throws Exception { security .tokenKeyAccess("permitAll()") .checkTokenAccess("isAuthenticated()") .allowFormAuthenticationForClients(); } }-->
Summary
Actual Behavior
Expected Behavior
Configuration
Version
Sample