Package org.flowable.spring.security
Class FlowableAuthenticationProvider
java.lang.Object
org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
org.flowable.spring.security.FlowableAuthenticationProvider
- All Implemented Interfaces:
Aware,InitializingBean,MessageSourceAware,AuthenticationProvider
A flowable implementation of
AuthenticationProvider that uses the IdmIdentityService and
UserDetailsService to check the user credentials and and load the user. It uses the UsernamePasswordAuthenticationToken.- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IdmIdentityServiceprotected final UserDetailsServiceFields inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
hideUserNotFoundExceptions, logger, messages -
Constructor Summary
ConstructorsConstructorDescriptionFlowableAuthenticationProvider(IdmIdentityService idmIdentityService, UserDetailsService userDetailsService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadditionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication) protected UserDetailsretrieveUser(String username, UsernamePasswordAuthenticationToken authentication) Methods inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
-
Field Details
-
idmIdentityService
-
userDetailsService
-
-
Constructor Details
-
FlowableAuthenticationProvider
public FlowableAuthenticationProvider(IdmIdentityService idmIdentityService, UserDetailsService userDetailsService)
-
-
Method Details
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException - Specified by:
additionalAuthenticationChecksin classAbstractUserDetailsAuthenticationProvider- Throws:
AuthenticationException
-
retrieveUser
protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException - Specified by:
retrieveUserin classAbstractUserDetailsAuthenticationProvider- Throws:
AuthenticationException
-