public final class OidcUserInfoEndpointConfigurer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> |
getObjectPostProcessor() |
protected <T> T |
postProcess(T object) |
OidcUserInfoEndpointConfigurer |
userInfoMapper(java.util.function.Function<OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo> userInfoMapper)
Sets the
Function used to extract claims from OidcUserInfoAuthenticationContext
to an instance of OidcUserInfo for the UserInfo response. |
public OidcUserInfoEndpointConfigurer userInfoMapper(java.util.function.Function<OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo> userInfoMapper)
Function used to extract claims from OidcUserInfoAuthenticationContext
to an instance of OidcUserInfo for the UserInfo response.
The OidcUserInfoAuthenticationContext gives the mapper access to the OidcUserInfoAuthenticationToken,
as well as, the following context attributes:
OidcUserInfoAuthenticationContext.getAccessToken() containing the bearer token used to make the request.OidcUserInfoAuthenticationContext.getAuthorization() containing the OidcIdToken and
OAuth2AccessToken associated with the bearer token used to make the request.userInfoMapper - the Function used to extract claims from OidcUserInfoAuthenticationContext to an instance of OidcUserInfoOidcUserInfoEndpointConfigurer for further configurationprotected final <T> T postProcess(T object)
protected final org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> getObjectPostProcessor()