@EnableOAuth2Client @EnableWebSecurity @Configuration @Conditional(value=OnSecurityEnabledAndOAuth2Enabled.class) public class OAuthSecurityConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Constructor and Description |
---|
OAuthSecurityConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.authentication.AuthenticationProvider |
authenticationProvider() |
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
void |
handleOAuth2AuthenticationFailureEvent(org.springframework.security.oauth2.client.filter.OAuth2AuthenticationFailureEvent oAuth2AuthenticationFailureEvent) |
org.springframework.security.oauth2.client.OAuth2RestTemplate |
oAuth2RestTemplate() |
org.springframework.security.authentication.AuthenticationManager |
oauthAuthenticationManager() |
org.springframework.security.authentication.ProviderManager |
providerManager() |
org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices |
tokenServices() |
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Exception
@Bean public org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices tokenServices()
@Bean public org.springframework.security.oauth2.client.OAuth2RestTemplate oAuth2RestTemplate()
@Bean public org.springframework.security.authentication.AuthenticationProvider authenticationProvider()
@Bean public org.springframework.security.authentication.ProviderManager providerManager()
@Bean public org.springframework.security.authentication.AuthenticationManager oauthAuthenticationManager()
@EventListener public void handleOAuth2AuthenticationFailureEvent(org.springframework.security.oauth2.client.filter.OAuth2AuthenticationFailureEvent oAuth2AuthenticationFailureEvent)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.