Class ConfigurableOauth2UserService<U extends org.springframework.security.oauth2.core.oidc.user.OidcUser>

  • All Implemented Interfaces:
    org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,​org.springframework.security.oauth2.core.oidc.user.OidcUser>

    public class ConfigurableOauth2UserService<U extends org.springframework.security.oauth2.core.oidc.user.OidcUser>
    extends Object
    implements org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,​org.springframework.security.oauth2.core.oidc.user.OidcUser>
    • Constructor Detail

      • ConfigurableOauth2UserService

        public ConfigurableOauth2UserService​(org.springframework.http.client.HttpComponentsClientHttpRequestFactory httpRequestFactory,
                                             org.springframework.context.ApplicationEventPublisher events,
                                             BiFunction<Set<org.springframework.security.core.GrantedAuthority>,​org.springframework.security.oauth2.core.oidc.user.OidcUser,​U> userFactory)
    • Method Detail

      • loadUser

        public org.springframework.security.oauth2.core.oidc.user.OidcUser loadUser​(org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest userRequest)
                                                                             throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
        Specified by:
        loadUser in interface org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,​org.springframework.security.oauth2.core.oidc.user.OidcUser>
        Throws:
        org.springframework.security.oauth2.core.OAuth2AuthenticationException