@Target(TYPE)
@Retention(RUNTIME)
@Documented
@EnableOAuth2Client
@EnableConfigurationProperties(OAuth2SsoProperties.class)
@Import({OAuth2SsoDefaultConfiguration.class,OAuth2SsoCustomConfiguration.class,ResourceServerTokenServicesConfiguration.class})
public @interface EnableOAuth2Sso
Enable OAuth2 Single Sign On (SSO). If there is an existing WebSecurityConfigurerAdapter
provided by the user and annotated with @EnableOAuth2Sso
, it is enhanced by adding an authentication filter and an authentication entry point. If the user only has @EnableOAuth2Sso
but not on a WebSecurityConfigurerAdapter then one is added with all paths secured and with an order that puts it ahead of the default HTTP Basic security chain in Spring Boot.
- 从以下版本开始:
- 1.3.0