Class 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 Detail

      • DefaultPreAuthenticatedUserDetailsService

        public DefaultPreAuthenticatedUserDetailsService()
    • Method Detail

      • 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