Class AuthServiceServiceAutoConfiguration
- java.lang.Object
-
- com.broadleafcommerce.auth.user.service.autoconfigure.AuthServiceServiceAutoConfiguration
-
@Configuration @EnableBinding({com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer.class,PurgeLoginTriggeredJobEventConsumer.class}) @EnableConfigurationProperties(AuthRegistrationProperties.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
Constructors Constructor Description AuthServiceServiceAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserRegistrationTypeResolver
customerTypeResolver()
<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
purgeLoginTableJobListener(UserLoginAttemptService<UserLoginAttempt> userLoginAttemptService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageConsumptionService)
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)
PrivilegeService
restrictionService(UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService userRoleAncestryHydrationService, AuthorizationServerService<AuthorizationServer> serverService)
SimplePayloadMapper
simplePayloadMapper(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
UserAttributesRequestHandler
userClaimsRequestHandler(UserService<User> userService)
UserLockoutService
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<User>
userMessagingService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
UserOperationService
userOperationService(PermissionRepository permissionRepository)
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)
<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
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)
-
-
-
Method Detail
-
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)
-
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)
-
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)
-
customerTypeResolver
@Bean @ConditionalOnMissingBean public UserRegistrationTypeResolver 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)
-
-