public class ProfileUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
UserDetailsService
that uses ProfileService
Modifier and Type | Field and Description |
---|---|
protected org.craftercms.profile.api.services.ProfileService |
profileService |
protected org.craftercms.security.utils.tenant.TenantsResolver |
tenantsResolver |
Constructor and Description |
---|
ProfileUserDetailsService(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver,
org.craftercms.profile.api.services.ProfileService profileService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.userdetails.UserDetails |
loadUserById(String id) |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
protected org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver
protected org.craftercms.profile.api.services.ProfileService profileService
public ProfileUserDetailsService(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.profile.api.services.ProfileService profileService)
public org.springframework.security.core.userdetails.UserDetails loadUserById(String id)
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
Copyright © 2020 CrafterCMS. All rights reserved.