Class OAuthClientAutoConfiguration
- java.lang.Object
-
- com.broadleafcommerce.auth.client.autoconfigure.OAuthClientAutoConfiguration
-
@Configuration @AutoConfigureBefore(org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration.class) @EnableConfigurationProperties({org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties.class,OAuth2AuthorizedClientRepositoryProperties.class,AuthorizationRequestRepositoryProperties.class}) public class OAuthClientAutoConfiguration extends Object
Beans to support acting as an OAuth Client for 3rd party authentication
-
-
Constructor Summary
Constructors Constructor Description OAuthClientAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,BroadleafOAuthClientAuthenticationDetails>
authenticationDetailsSource(ContextHelperService contextHelperService)
protected BroadleafAuthorizationRequestRepository
authorizationRequestRepository(StatelessUtil statelessUtil, ContextHelperService contextHelperService)
protected ClientIdFilter
clientIdFilter(ContextHelperService contextHelperService)
org.springframework.boot.web.servlet.FilterRegistrationBean<ClientIdFilter>
clientIdFilterRegistration(ClientIdFilter filter)
Disable automatic Filter registration forClientIdFilter
.ClientRegistrationPropertiesService<OAuthClientRegistrationWrapper>
clientRegistrationPropertiesService(org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties oAuth2ClientProperties)
org.springframework.security.oauth2.client.registration.ClientRegistrationRepository
clientRegistrationRepository(OAuthClientRegistrationPersistenceService<OAuthClientRegistrationWrapper> oAuthClientRegistrationPersistenceService, ContextHelperService contextHelperService, ClientRegistrationPropertiesService<OAuthClientRegistrationWrapper> clientRegistrationPropertiesService)
ContextHelperService
contextHelperService(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
-
-
Method Detail
-
clientRegistrationRepository
@Bean @ConditionalOnMissingBean(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository.class) public org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository(OAuthClientRegistrationPersistenceService<OAuthClientRegistrationWrapper> oAuthClientRegistrationPersistenceService, ContextHelperService contextHelperService, ClientRegistrationPropertiesService<OAuthClientRegistrationWrapper> clientRegistrationPropertiesService)
-
clientRegistrationPropertiesService
@Bean @ConditionalOnMissingBean public ClientRegistrationPropertiesService<OAuthClientRegistrationWrapper> clientRegistrationPropertiesService(org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties oAuth2ClientProperties)
-
contextHelperService
@Bean @ConditionalOnMissingBean public ContextHelperService contextHelperService(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
clientIdFilter
@Bean @ConditionalOnMissingBean protected ClientIdFilter clientIdFilter(ContextHelperService contextHelperService)
-
clientIdFilterRegistration
@Bean @ConditionalOnMissingBean(name="clientIdFilterRegistration") public org.springframework.boot.web.servlet.FilterRegistrationBean<ClientIdFilter> clientIdFilterRegistration(ClientIdFilter filter)
Disable automatic Filter registration forClientIdFilter
. It is manually added to security filter chain inAuthorizationServerWebSecurityConfiguration.configure(org.springframework.security.config.annotation.web.builders.WebSecurity)
.See documentation file "register-security-filters.adoc" for information about how to properly register security filters.
-
authorizationRequestRepository
@Bean @ConditionalOnMissingBean protected BroadleafAuthorizationRequestRepository authorizationRequestRepository(StatelessUtil statelessUtil, ContextHelperService contextHelperService)
-
authenticationDetailsSource
@Bean @ConditionalOnMissingBean public org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,BroadleafOAuthClientAuthenticationDetails> authenticationDetailsSource(ContextHelperService contextHelperService)
-
-