@Configuration @Conditional(value=OAuth2SsoDefaultConfiguration.NeedsWebSecurityCondition.class) public class OAuth2SsoDefaultConfiguration extends WebSecurityConfigurerAdapter implements Ordered
@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.| Modifier and Type | Class and Description |
|---|---|
protected static class |
OAuth2SsoDefaultConfiguration.NeedsWebSecurityCondition |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
OAuth2SsoDefaultConfiguration(ApplicationContext applicationContext,
OAuth2SsoProperties sso) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(HttpSecurity http) |
int |
getOrder() |
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanpublic OAuth2SsoDefaultConfiguration(ApplicationContext applicationContext, OAuth2SsoProperties sso)
protected void configure(HttpSecurity http) throws Exception
configure in class WebSecurityConfigurerAdapterExceptionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.