Class OAuth2SsoCustomConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2SsoCustomConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.config.BeanPostProcessor
,org.springframework.context.annotation.ImportAware
,org.springframework.context.ApplicationContextAware
@Configuration @Conditional(org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2SsoCondition.class) public class OAuth2SsoCustomConfiguration extends Object implements org.springframework.context.annotation.ImportAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware
Configuration for OAuth2 Single Sign On (SSO) when there is an existingWebSecurityConfigurerAdapter
provided by the user and annotated with@EnableOAuth2Sso
. The user-provided configuration is enhanced by adding an authentication filter and an authentication entry point.
Constructor Summary
Constructors Constructor Description OAuth2SsoCustomConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
postProcessAfterInitialization(Object bean, String beanName)
Object
postProcessBeforeInitialization(Object bean, String beanName)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
Constructor Detail
OAuth2SsoCustomConfiguration
public OAuth2SsoCustomConfiguration()
Method Detail
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
- Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException