@EnableOAuth2Client @Configuration @ConditionalOnClass(value=org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.class) @ConditionalOnMissingBean(value=org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.class) @ConditionalOnWebApplication(type=ANY) @EnableWebSecurity @Conditional(value=OnOAuth2SecurityEnabled.class) public class OAuthSecurityConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OAuthSecurityConfiguration.BrowserDetectingContentNegotiationStrategy |
protected static class |
OAuthSecurityConfiguration.ResourceServerConfiguration |
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationEventPublisher |
applicationEventPublisher |
protected org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails |
authorizationCodeResourceDetails |
protected AuthorizationProperties |
authorizationProperties |
protected org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails |
clientCredentialsResourceDetails |
protected org.springframework.security.oauth2.client.OAuth2ClientContext |
oauth2ClientContext |
protected org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties |
resourceServerProperties |
protected org.springframework.boot.autoconfigure.security.SecurityProperties |
securityProperties |
protected SecurityStateBean |
securityStateBean |
| Constructor and Description |
|---|
OAuthSecurityConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.authentication.AuthenticationProvider |
authenticationProvider() |
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
protected String |
dashboard(String path) |
void |
handleOAuth2AuthenticationFailureEvent(org.springframework.security.oauth2.client.filter.OAuth2AuthenticationFailureEvent oAuth2AuthenticationFailureEvent) |
protected org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter |
oAuth2AuthenticationProcessingFilter() |
protected org.springframework.security.oauth2.client.OAuth2RestTemplate |
oAuth2RestTemplate() |
org.springframework.security.authentication.AuthenticationManager |
oauthAuthenticationManager() |
protected javax.servlet.Filter |
oauthFilter() |
protected org.springframework.security.authentication.ProviderManager |
providerManager() |
protected TokenValidatingUserInfoTokenServices |
resourceServerTokenServices() |
org.springframework.security.oauth2.client.token.AccessTokenProvider |
userAccessTokenProvider() |
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean@Autowired protected SecurityStateBean securityStateBean
@Autowired protected org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties
@Autowired protected org.springframework.security.oauth2.client.OAuth2ClientContext oauth2ClientContext
@Autowired protected org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails authorizationCodeResourceDetails
@Autowired protected org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties resourceServerProperties
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
@Autowired protected AuthorizationProperties authorizationProperties
@Autowired protected org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails clientCredentialsResourceDetails
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterException@Bean protected TokenValidatingUserInfoTokenServices resourceServerTokenServices()
@Bean protected org.springframework.security.oauth2.client.OAuth2RestTemplate oAuth2RestTemplate()
public org.springframework.security.oauth2.client.token.AccessTokenProvider userAccessTokenProvider()
@Bean protected org.springframework.security.authentication.AuthenticationProvider authenticationProvider()
@Bean protected org.springframework.security.authentication.ProviderManager providerManager()
protected javax.servlet.Filter oauthFilter()
protected org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter oAuth2AuthenticationProcessingFilter()
@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.