Class ConfigurableOauth2UserService<U extends org.springframework.security.oauth2.core.oidc.user.OidcUser>
- java.lang.Object
-
- net.optionfactory.spring.oidc.authcode.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.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.core.oidc.user.OidcUserloadUser(org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest userRequest)
-
-
-
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:
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
-
-