public class OidcUserService extends java.lang.Object implements OAuth2UserService
OAuth2UserService
that supports OpenID Connect 1.0 Provider's.
This implementation uses a UserInfoRetriever
to obtain the user attributes
of the End-User (resource owner) from the UserInfo Endpoint
and constructs a UserInfo
instance.
OAuth2UserService
,
OidcClientAuthenticationToken
,
DefaultOidcUser
,
UserInfo
,
UserInfoRetriever
Constructor and Description |
---|
OidcUserService() |
Modifier and Type | Method and Description |
---|---|
protected UserInfoRetriever |
getUserInfoRetriever() |
OAuth2User |
loadUser(OAuth2ClientAuthenticationToken clientAuthentication) |
void |
setUserInfoRetriever(UserInfoRetriever userInfoRetriever) |
public OAuth2User loadUser(OAuth2ClientAuthenticationToken clientAuthentication) throws OAuth2AuthenticationException
loadUser
in interface OAuth2UserService
OAuth2AuthenticationException
protected UserInfoRetriever getUserInfoRetriever()
public final void setUserInfoRetriever(UserInfoRetriever userInfoRetriever)