public class LemonOAuth2UserService<U extends AbstractUser<U,ID>,ID extends java.io.Serializable>
extends org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService
Constructor and Description |
---|
LemonOAuth2UserService(LemonUserDetailsService<U,?> userDetailsService,
LemonService<U,?> lemonService,
org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) |
Modifier and Type | Method and Description |
---|---|
LemonPrincipal<ID> |
buildPrincipal(org.springframework.security.oauth2.core.user.OAuth2User oath2User,
java.lang.String registrationId)
Builds the security principal from the given userReqest.
|
org.springframework.security.oauth2.core.user.OAuth2User |
loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest) |
public LemonOAuth2UserService(LemonUserDetailsService<U,?> userDetailsService, LemonService<U,?> lemonService, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
public org.springframework.security.oauth2.core.user.OAuth2User loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest) throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
loadUser
in interface org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest,org.springframework.security.oauth2.core.user.OAuth2User>
loadUser
in class org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService
org.springframework.security.oauth2.core.OAuth2AuthenticationException
public LemonPrincipal<ID> buildPrincipal(org.springframework.security.oauth2.core.user.OAuth2User oath2User, java.lang.String registrationId)