Class AuthServiceServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.auth.user.service.autoconfigure.AuthServiceServiceAutoConfiguration
@AutoConfiguration
@EnableBinding({com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer.class,PurgeLoginTriggeredJobEventConsumer.class})
@EnableConfigurationProperties({AuthRegistrationProperties.class,UserMappingProperties.class})
public class AuthServiceServiceAutoConfiguration
extends Object
Configures the common service layer that applies to both the resource and authorization server
concerns
- Author:
- Phillip Verheyden (phillipuniverse), Nick Crum (ncrum)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccountAncestorService
(CustomerAccountService<CustomerAccount> customerAccountService) accountMemberRoleChangeRequestHandler
(UserService<User> userService, UserRoleService<UserRole> userRoleService) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
AccountRoleService<AccountRole>accountRoleService
(AccountRoleRepository<D> repository, SimplePayloadMapper mapper) accountStatusChangeRequestHandler
(AccountRoleService<AccountRole> accountRoleService, CustomerAccountService<CustomerAccount> customerAccountService, UserService<User> userService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
CustomerAccountService<CustomerAccount>customerAccountService
(CustomerAccountRepository<D> repository, SimplePayloadMapper mapper, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
PasscodeService<PasswordToken,User> passcodeService
(SimplePayloadMapper mapper, PasswordTokenRepository<D> passwordTokenRepository, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, PasswordTokenProperties passwordTokenProperties) purgeLoginTableJobListener
(UserLoginAttemptService<UserLoginAttempt> userLoginAttemptService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageConsumptionService) registrationService
(UserService<User> userService, AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, RegistrationValidator registrationValidator, UserRegistrationProducer userRegistrationProducer, AuthRegistrationProperties registrationProperties, ApplicationService<Application> applicationService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) restrictionService
(UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService userRoleAncestryHydrationService, AuthorizationServerService<AuthorizationServer> serverService, AccountAncestorService accountAncestorService, TokenProperties tokenProperties) simplePayloadMapper
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AuthTranslationPostMapperMember authTranslationPostMapperMember) userClaimsRequestHandler
(UserService<User> userService) userLockoutService
(UserService<User> userService, UserLoginAttemptService<UserLoginAttempt> loginAttemptService, AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, UserLockoutProperties userLockoutProperties) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
UserLoginAttemptService<UserLoginAttempt>userLoginAttemptService
(UserLoginAttemptRepository<D> repository, SimplePayloadMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) userMessagingService
(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory) userOperationService
(PermissionRepository permissionRepository) userPasswordService
(UserService<User> userService, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, UserMessagingService<User> messageService, ResetPasswordFormValidator<PasswordToken> resetPasswordFormValidator, ChangePasswordFormValidator changePasswordFormValidator, UserLockoutService userLockoutService, PasscodeService<PasswordToken, User> defaultPasscodeService) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
UserPermissionService<UserPermission>userPermissionService
(UserPermissionRepository<D> permissionRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper) userRoleAncestryHydrationService
(UserRoleService<UserRole> userRoleService) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
UserRoleService<UserRole>userRoleService
(RoleRepository<D> roleRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper) <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
UserService<User>userService
(AuthorizedClientService<AuthorizedClient> clientService, UserRepository<D> userRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper, UserUpdateProducer userUpdateProducer)
-
Constructor Details
-
AuthServiceServiceAutoConfiguration
public AuthServiceServiceAutoConfiguration()
-
-
Method Details
-
userService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> UserService<User> userService(AuthorizedClientService<AuthorizedClient> clientService, UserRepository<D> userRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper, UserUpdateProducer userUpdateProducer) -
userPasswordService
@Bean @ConditionalOnMissingBean public UserPasswordService<PasswordToken,User> userPasswordService(UserService<User> userService, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, UserMessagingService<User> messageService, ResetPasswordFormValidator<PasswordToken> resetPasswordFormValidator, ChangePasswordFormValidator changePasswordFormValidator, UserLockoutService userLockoutService, PasscodeService<PasswordToken, User> defaultPasscodeService) -
passcodeService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> PasscodeService<PasswordToken,User> passcodeService(SimplePayloadMapper mapper, PasswordTokenRepository<D> passwordTokenRepository, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, PasswordTokenProperties passwordTokenProperties) -
userOperationService
@Bean @ConditionalOnMissingBean public UserOperationService userOperationService(PermissionRepository permissionRepository) -
userMessagingService
@Bean @ConditionalOnMissingBean public UserMessagingService<User> userMessagingService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
simplePayloadMapper
@Bean @ConditionalOnMissingBean public SimplePayloadMapper simplePayloadMapper(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AuthTranslationPostMapperMember authTranslationPostMapperMember) -
userPermissionService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> UserPermissionService<UserPermission> userPermissionService(UserPermissionRepository<D> permissionRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper) -
restrictionService
@Bean @ConditionalOnMissingBean public PrivilegeService restrictionService(UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService userRoleAncestryHydrationService, AuthorizationServerService<AuthorizationServer> serverService, AccountAncestorService accountAncestorService, TokenProperties tokenProperties) -
userRoleService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> UserRoleService<UserRole> userRoleService(RoleRepository<D> roleRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper) -
accountRoleService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> AccountRoleService<AccountRole> accountRoleService(AccountRoleRepository<D> repository, SimplePayloadMapper mapper) -
customerTypeResolver
-
registrationService
@Bean @ConditionalOnMissingBean public UserRegistrationService<User> registrationService(UserService<User> userService, AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, RegistrationValidator registrationValidator, UserRegistrationProducer userRegistrationProducer, AuthRegistrationProperties registrationProperties, ApplicationService<Application> applicationService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
userClaimsRequestHandler
@Bean @ConditionalOnMissingBean public UserAttributesRequestHandler userClaimsRequestHandler(UserService<User> userService) -
userRoleAncestryHydrationService
@Bean @ConditionalOnMissingBean public UserRoleAncestryHydrationService userRoleAncestryHydrationService(UserRoleService<UserRole> userRoleService) -
userLoginAttemptService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> UserLoginAttemptService<UserLoginAttempt> userLoginAttemptService(UserLoginAttemptRepository<D> repository, SimplePayloadMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
userLockoutService
@Bean @ConditionalOnMissingBean public UserLockoutService userLockoutService(UserService<User> userService, UserLoginAttemptService<UserLoginAttempt> loginAttemptService, AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, UserLockoutProperties userLockoutProperties) -
purgeLoginTableJobListener
@Bean @ConditionalOnMissingBean public PurgeLoginTableJobListener purgeLoginTableJobListener(UserLoginAttemptService<UserLoginAttempt> userLoginAttemptService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageConsumptionService) -
accountStatusChangeRequestHandler
@Bean @ConditionalOnMissingBean public AccountUpdateRequestHandler accountStatusChangeRequestHandler(AccountRoleService<AccountRole> accountRoleService, CustomerAccountService<CustomerAccount> customerAccountService, UserService<User> userService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
accountMemberRoleChangeRequestHandler
@Bean @ConditionalOnMissingBean public AccountMemberRoleChangeRequestHandler accountMemberRoleChangeRequestHandler(UserService<User> userService, UserRoleService<UserRole> userRoleService) -
customerAccountService
@Bean @ConditionalOnMissingBean public <D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> CustomerAccountService<CustomerAccount> customerAccountService(CustomerAccountRepository<D> repository, SimplePayloadMapper mapper, @Nullable com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager) -
accountAncestorService
@Bean @ConditionalOnMissingBean public AccountAncestorService accountAncestorService(CustomerAccountService<CustomerAccount> customerAccountService) -
passwordGenerator
-