Class ProfileUserDetailsService
java.lang.Object
org.craftercms.engine.util.spring.security.profile.ProfileUserDetailsService
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class ProfileUserDetailsService
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
Implementation of
UserDetailsService
that uses ProfileService
- Since:
- 3.1.5
- Author:
- joseross
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.craftercms.profile.api.services.ProfileService
protected org.craftercms.security.utils.tenant.TenantsResolver
-
Constructor Summary
ConstructorDescriptionProfileUserDetailsService
(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.profile.api.services.ProfileService profileService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
loadUserById
(String id) org.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username)
-
Field Details
-
tenantsResolver
protected org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver -
profileService
protected org.craftercms.profile.api.services.ProfileService profileService
-
-
Constructor Details
-
ProfileUserDetailsService
@ConstructorProperties({"tenantsResolver","profileService"}) public ProfileUserDetailsService(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.profile.api.services.ProfileService profileService)
-
-
Method Details
-
loadUserById
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-