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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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 classorg.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService
-