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 ofPreAuthenticatedGrantedAuthoritiesUserDetailsService
that always returns the same principal obtained from the authentication filter- Since:
- 3.1.5
- Author:
- joseross
-
-
Constructor Summary
Constructors Constructor Description DefaultPreAuthenticatedUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
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 classorg.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService
-
-