public final class OAuth2LoginConfigurer.UserInfoEndpointConfig
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
OAuth2LoginConfigurer<B> |
and()
Returns the
OAuth2LoginConfigurer for further configuration. |
OAuth2LoginConfigurer.UserInfoEndpointConfig |
customUserType(java.lang.Class<? extends OAuth2User> customUserType,
java.lang.String clientRegistrationId)
Deprecated.
See
CustomUserTypesOAuth2UserService for alternative usage. |
OAuth2LoginConfigurer.UserInfoEndpointConfig |
oidcUserService(OAuth2UserService<OidcUserRequest,OidcUser> oidcUserService)
Sets the OpenID Connect 1.0 service used for obtaining the user attributes of
the End-User from the UserInfo Endpoint.
|
OAuth2LoginConfigurer.UserInfoEndpointConfig |
userAuthoritiesMapper(GrantedAuthoritiesMapper userAuthoritiesMapper)
Sets the
GrantedAuthoritiesMapper used for mapping
OAuth2AuthenticatedPrincipal.getAuthorities() . |
OAuth2LoginConfigurer.UserInfoEndpointConfig |
userService(OAuth2UserService<OAuth2UserRequest,OAuth2User> userService)
Sets the OAuth 2.0 service used for obtaining the user attributes of the
End-User from the UserInfo Endpoint.
|
public OAuth2LoginConfigurer.UserInfoEndpointConfig userService(OAuth2UserService<OAuth2UserRequest,OAuth2User> userService)
userService
- the OAuth 2.0 service used for obtaining the user attributes
of the End-User from the UserInfo EndpointOAuth2LoginConfigurer.UserInfoEndpointConfig
for further configurationpublic OAuth2LoginConfigurer.UserInfoEndpointConfig oidcUserService(OAuth2UserService<OidcUserRequest,OidcUser> oidcUserService)
oidcUserService
- the OpenID Connect 1.0 service used for obtaining the
user attributes of the End-User from the UserInfo EndpointOAuth2LoginConfigurer.UserInfoEndpointConfig
for further configuration@Deprecated public OAuth2LoginConfigurer.UserInfoEndpointConfig customUserType(java.lang.Class<? extends OAuth2User> customUserType, java.lang.String clientRegistrationId)
CustomUserTypesOAuth2UserService
for alternative usage.OAuth2User
type and associates it to the provided client
registration identifier
.customUserType
- a custom OAuth2User
typeclientRegistrationId
- the client registration identifierOAuth2LoginConfigurer.UserInfoEndpointConfig
for further configurationpublic OAuth2LoginConfigurer.UserInfoEndpointConfig userAuthoritiesMapper(GrantedAuthoritiesMapper userAuthoritiesMapper)
GrantedAuthoritiesMapper
used for mapping
OAuth2AuthenticatedPrincipal.getAuthorities()
.userAuthoritiesMapper
- the GrantedAuthoritiesMapper
used for
mapping the user's authoritiesOAuth2LoginConfigurer.UserInfoEndpointConfig
for further configurationpublic OAuth2LoginConfigurer<B> and()
OAuth2LoginConfigurer
for further configuration.OAuth2LoginConfigurer