Class ProfileAuthenticationProvider

java.lang.Object
org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
org.craftercms.engine.util.spring.security.profile.ProfileAuthenticationProvider
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.security.authentication.AuthenticationProvider

public class ProfileAuthenticationProvider extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
Implementation of AbstractUserDetailsAuthenticationProvider that handles form login for with Profile
Since:
3.1.5
Author:
joseross
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.craftercms.security.authentication.AuthenticationManager
     
    protected org.craftercms.security.utils.tenant.TenantsResolver
     

    Fields inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider

    hideUserNotFoundExceptions, logger, messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileAuthenticationProvider(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.security.authentication.AuthenticationManager authenticationManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
     
    protected ProfileUser
    createPrincipal(org.craftercms.security.authentication.Authentication auth)
     
    protected String[]
     
    protected org.springframework.security.core.userdetails.UserDetails
    retrieveUser(String username, org.springframework.security.authentication.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tenantsResolver

      protected org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver
    • authenticationManager

      protected org.craftercms.security.authentication.AuthenticationManager authenticationManager
  • Constructor Details

    • ProfileAuthenticationProvider

      @ConstructorProperties({"tenantsResolver","authenticationManager"}) public ProfileAuthenticationProvider(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.security.authentication.AuthenticationManager authenticationManager)
  • Method Details

    • additionalAuthenticationChecks

      protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      additionalAuthenticationChecks in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • retrieveUser

      protected org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      retrieveUser in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • getTenants

      protected String[] getTenants()
    • createPrincipal

      protected ProfileUser createPrincipal(org.craftercms.security.authentication.Authentication auth)