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
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,
BroadleafOAuthClientAuthenticationDetails> authenticationDetailsSource
(ContextHelperService contextHelperService) protected BroadleafAuthorizationRequestRepository
authorizationRequestRepository
(StatelessUtil statelessUtil, ContextHelperService contextHelperService) clientRegistrationPropertiesService
(org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties oAuth2ClientProperties) clientRegistrationRepository
(OAuthClientRegistrationPersistenceService<OAuthClientRegistrationWrapper> oAuthClientRegistrationPersistenceService, ContextHelperService contextHelperService, ClientRegistrationPropertiesService<OAuthClientRegistrationWrapper> clientRegistrationPropertiesService) contextHelperService
(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
Constructor Details
-
OAuthClientAutoConfiguration
public OAuthClientAutoConfiguration()
-
-
Method Details
-
clientRegistrationRepository
@Bean @ConditionalOnMissingBean(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository.class) public BroadleafClientRegistrationRepository 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) -
authorizationRequestRepository
@Bean @ConditionalOnMissingBean protected BroadleafAuthorizationRequestRepository authorizationRequestRepository(StatelessUtil statelessUtil, ContextHelperService contextHelperService) -
authenticationDetailsSource
@Bean @ConditionalOnMissingBean public org.springframework.security.authentication.AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,BroadleafOAuthClientAuthenticationDetails> authenticationDetailsSource(ContextHelperService contextHelperService)
-