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
ConstructorsConstructorDescriptionConfigurableOauth2UserService(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 TypeMethodDescriptionorg.springframework.security.oauth2.core.oidc.user.OidcUserloadUser(org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest userRequest)
-
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:
loadUserin interfaceorg.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
-