Load users based on a org.pac4j.oauth.profile.OAuth20Profile
Type Params | Return Type | Name and description |
---|---|---|
|
OauthUser |
loadUserByUserProfile(org.pac4j.core.profile.CommonProfile userProfile, java.util.Collection<org.springframework.security.core.GrantedAuthority> defaultRoles) Search for a user based on his org.pac4j.oauth.profile.OAuth20Profile. |
Methods inherited from class | Name |
---|---|
interface org.springframework.security.core.userdetails.UserDetailsService |
org.springframework.security.core.userdetails.UserDetailsService#loadUserByUsername(java.lang.String) |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Search for a user based on his org.pac4j.oauth.profile.OAuth20Profile. Implementations have a chance here to define additional checks, like verifying that user's email domain is valid.
userProfile
- user's OAuth profile returned by OAuth provider.