@EnableConfigurationProperties(value=CoffeeNetSecurityProperties.class) public class IntegrationCoffeeNetWebSecurityConfigurerAdapter extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| Constructor and Description |
|---|
IntegrationCoffeeNetWebSecurityConfigurerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
org.springframework.security.config.annotation.web.builders.HttpSecurity |
enableSso(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Configures the passed
HttpSecurity to support oauth2 sso. |
void |
setCoffeeNetSecurityProperties(CoffeeNetSecurityProperties securityConfigurationProperties) |
void |
setCoffeeNetSecurityResourceProperties(CoffeeNetSecurityResourceProperties coffeenetResource) |
void |
setOAuth2ClientAuthenticationProcessingFilter(org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter oAuth2ClientAuthenticationProcessingFilter) |
void |
setUserInfoTokenServices(org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices userInfoTokenServices) |
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanpublic IntegrationCoffeeNetWebSecurityConfigurerAdapter()
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws java.lang.Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterjava.lang.Exceptionpublic org.springframework.security.config.annotation.web.builders.HttpSecurity enableSso(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws java.lang.Exception
HttpSecurity to support oauth2 sso. This Method should be used to enable oauth2
sso if this config is extended. This method does not configure any security constraints for any requests.http - The HttpSecurity that should be configured to support oauth2 sso.HttpSecurity.java.lang.Exception - Thrown if an exception occurs during configuration.@Autowired public void setCoffeeNetSecurityProperties(CoffeeNetSecurityProperties securityConfigurationProperties)
@Autowired public void setCoffeeNetSecurityResourceProperties(CoffeeNetSecurityResourceProperties coffeenetResource)
@Autowired public void setUserInfoTokenServices(org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices userInfoTokenServices)
@Autowired public void setOAuth2ClientAuthenticationProcessingFilter(org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter oAuth2ClientAuthenticationProcessingFilter)