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
FieldsModifier and TypeFieldDescriptionprotected org.craftercms.profile.api.services.ProfileServiceprotected org.craftercms.security.utils.tenant.TenantsResolver -
Constructor Summary
ConstructorsConstructorDescriptionProfileUserDetailsService(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.profile.api.services.ProfileService profileService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsloadUserById(String id) org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(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:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-