类 OAuth2SsoDefaultConfiguration
- java.lang.Object
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2SsoDefaultConfiguration
- 所有已实现的接口:
org.springframework.core.Ordered
,org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@Configuration @Conditional(NeedsWebSecurityCondition.class) public class OAuth2SsoDefaultConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter implements org.springframework.core.Ordered
Configuration for OAuth2 Single Sign On (SSO). If the user only has@EnableOAuth2Sso
but not on aWebSecurityConfigurerAdapter
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
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
OAuth2SsoDefaultConfiguration.NeedsWebSecurityCondition
构造器概要
构造器 构造器 说明 OAuth2SsoDefaultConfiguration(org.springframework.context.ApplicationContext applicationContext, OAuth2SsoProperties sso)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
int
getOrder()
从类继承的方法 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
构造器详细资料
OAuth2SsoDefaultConfiguration
public OAuth2SsoDefaultConfiguration(org.springframework.context.ApplicationContext applicationContext, OAuth2SsoProperties sso)
方法详细资料
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
- 覆盖:
configure
在类中org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- 抛出:
Exception
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered