Class DefaultPreAuthenticatedUserDetailsService

java.lang.Object
org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService
org.craftercms.engine.util.spring.security.DefaultPreAuthenticatedUserDetailsService
All Implemented Interfaces:
org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken>

public class DefaultPreAuthenticatedUserDetailsService extends org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService
Extension of PreAuthenticatedGrantedAuthoritiesUserDetailsService that always returns the same principal obtained from the authentication filter
Since:
3.1.5
Author:
joseross
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.core.userdetails.UserDetails
    createUserDetails(org.springframework.security.core.Authentication token, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     

    Methods inherited from class org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService

    loadUserDetails

    Methods inherited from class java.lang.Object

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

    • DefaultPreAuthenticatedUserDetailsService

      public DefaultPreAuthenticatedUserDetailsService()
  • Method Details

    • createUserDetails

      protected org.springframework.security.core.userdetails.UserDetails createUserDetails(org.springframework.security.core.Authentication token, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Overrides:
      createUserDetails in class org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService