@Configuration
@ConditionalOnProperty(prefix="coffeenet",
name="profile",
havingValue="integration")
@EnableConfigurationProperties(value={CoffeeNetSecurityProperties.class,CoffeeNetSecurityClientProperties.class,CoffeeNetSecurityResourceProperties.class})
@EnableOAuth2Client
public static class CoffeeNetSecurityAutoConfiguration.IntegrationCoffeeNetSecurityConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
IntegrationCoffeeNetSecurityConfiguration(CoffeeNetSecurityClientProperties coffeeNetSecurityClientProperties,
CoffeeNetSecurityResourceProperties coffeeNetSecurityResourceProperties,
CoffeeNetSecurityProperties coffeeNetSecurityProperties) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor |
coffeeNetAuthoritiesExtractor() |
CoffeeNetCurrentUserService |
coffeeNetCurrentUserService() |
org.springframework.boot.web.servlet.FilterRegistrationBean |
coffeeNetOauth2ClientFilterRegistration(org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter oAuth2ClientContextFilter) |
org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor |
coffeeNetPrincipalExtractor(org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor) |
org.springframework.security.oauth2.client.OAuth2RestTemplate |
coffeeNetUserInfoRestTemplate(org.springframework.security.oauth2.client.OAuth2ClientContext oauth2ClientContext) |
org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices |
coffeeNetUserInfoTokenServices(org.springframework.security.oauth2.client.OAuth2RestTemplate coffeeNetUserInfoRestTemplate,
org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor,
org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor principalExtractor) |
org.springframework.security.web.authentication.AuthenticationFailureHandler |
defaultAuthenticationFailureHandler() |
org.springframework.security.web.authentication.AuthenticationSuccessHandler |
defaultLoginSuccessUrlHandler() |
IntegrationCoffeeNetWebSecurityConfigurerAdapter |
integrationCoffeeNetWebSecurityConfigurerAdapter() |
org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter |
oAuth2ClientAuthenticationProcessingFilter(org.springframework.security.oauth2.client.OAuth2RestTemplate userInfoRestTemplate,
org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices userInfoTokenServices,
org.springframework.security.web.authentication.AuthenticationSuccessHandler defaultLoginSuccessUrlHandler,
org.springframework.security.web.authentication.AuthenticationFailureHandler defaultAuthenticationFailureHandler) |
@Autowired public IntegrationCoffeeNetSecurityConfiguration(CoffeeNetSecurityClientProperties coffeeNetSecurityClientProperties, CoffeeNetSecurityResourceProperties coffeeNetSecurityResourceProperties, CoffeeNetSecurityProperties coffeeNetSecurityProperties)
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean coffeeNetOauth2ClientFilterRegistration(org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter oAuth2ClientContextFilter)
@Bean @ConditionalOnMissingBean(value=CoffeeNetCurrentUserService.class) public CoffeeNetCurrentUserService coffeeNetCurrentUserService()
@Bean @ConditionalOnMissingBean public IntegrationCoffeeNetWebSecurityConfigurerAdapter integrationCoffeeNetWebSecurityConfigurerAdapter()
@Bean @ConditionalOnMissingBean(value=org.springframework.security.oauth2.client.OAuth2RestTemplate.class) public org.springframework.security.oauth2.client.OAuth2RestTemplate coffeeNetUserInfoRestTemplate(org.springframework.security.oauth2.client.OAuth2ClientContext oauth2ClientContext)
@Bean
@ConditionalOnMissingBean(value=org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices.class)
public org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices coffeeNetUserInfoTokenServices(org.springframework.security.oauth2.client.OAuth2RestTemplate coffeeNetUserInfoRestTemplate,
org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor,
org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor principalExtractor)
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor.class) public org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor coffeeNetAuthoritiesExtractor()
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor.class) public org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor coffeeNetPrincipalExtractor(org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor)
@Bean
@ConditionalOnMissingBean(value=org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter.class)
public org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter oAuth2ClientAuthenticationProcessingFilter(org.springframework.security.oauth2.client.OAuth2RestTemplate userInfoRestTemplate,
org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices userInfoTokenServices,
org.springframework.security.web.authentication.AuthenticationSuccessHandler defaultLoginSuccessUrlHandler,
org.springframework.security.web.authentication.AuthenticationFailureHandler defaultAuthenticationFailureHandler)
@Bean @ConditionalOnMissingBean(value=org.springframework.security.web.authentication.AuthenticationSuccessHandler.class) public org.springframework.security.web.authentication.AuthenticationSuccessHandler defaultLoginSuccessUrlHandler()
@Bean @ConditionalOnMissingBean(value=org.springframework.security.web.authentication.AuthenticationFailureHandler.class) public org.springframework.security.web.authentication.AuthenticationFailureHandler defaultAuthenticationFailureHandler()