@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@EnableOAuth2Client
@EnableConfigurationProperties(value=OAuth2SsoProperties.class)
@Import(value={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.
- Since:
- 1.3.0