public class NimbusOAuth2UserService extends java.lang.Object implements OAuth2UserService
OAuth2UserService
that uses the Nimbus OAuth 2.0 SDK internally.
This implementation uses a Map
of Converter
's keyed by URI
.
The URI
represents the UserInfo Endpoint address and the mapped Converter
is capable of converting the UserInfo Response to either an
OAuth2User
(for a standard OAuth 2.0 Provider) or
UserInfo
(for an OpenID Connect 1.0 Provider).
OAuth2AuthenticationToken
,
AuthenticatedPrincipal
,
OAuth2User
,
UserInfo
,
Converter
,
Nimbus OAuth 2.0 SDKConstructor and Description |
---|
NimbusOAuth2UserService(java.util.Map<java.net.URI,<any>> userInfoTypeConverters) |
Modifier and Type | Method and Description |
---|---|
OAuth2User |
loadUser(OAuth2AuthenticationToken token) |
public NimbusOAuth2UserService(java.util.Map<java.net.URI,<any>> userInfoTypeConverters)
public OAuth2User loadUser(OAuth2AuthenticationToken token) throws OAuth2AuthenticationException
loadUser
in interface OAuth2UserService
OAuth2AuthenticationException