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

java.lang.Object
net.optionfactory.spring.authentication.code.ConfigurableOauth2UserService<U>
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 Summary

    Constructors
    Constructor
    Description
    ConfigurableOauth2UserService(org.springframework.http.client.ClientHttpRequestFactory httpRequestFactory, org.springframework.context.ApplicationEventPublisher events, BiFunction<Set<org.springframework.security.core.GrantedAuthority>,org.springframework.security.oauth2.core.oidc.user.OidcUser,U> userFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.core.oidc.user.OidcUser
    loadUser(org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest userRequest)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurableOauth2UserService

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

    • 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