Class OidcUserRequest
java.lang.Object
org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest
org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest
Represents a request the
OidcUserService
uses when initiating a request to the
UserInfo Endpoint.- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorDescriptionOidcUserRequest
(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OidcIdToken idToken) Constructs anOidcUserRequest
using the provided parameters.OidcUserRequest
(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OidcIdToken idToken, Map<String, Object> additionalParameters) Constructs anOidcUserRequest
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest
getAccessToken, getAdditionalParameters, getClientRegistration
-
Constructor Details
-
OidcUserRequest
public OidcUserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OidcIdToken idToken) Constructs anOidcUserRequest
using the provided parameters.- Parameters:
clientRegistration
- the client registrationaccessToken
- the access token credentialidToken
- the ID Token
-
OidcUserRequest
public OidcUserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OidcIdToken idToken, Map<String, Object> additionalParameters) Constructs anOidcUserRequest
using the provided parameters.- Parameters:
clientRegistration
- the client registrationaccessToken
- the access token credentialidToken
- the ID TokenadditionalParameters
- the additional parameters, may be empty- Since:
- 5.1
-
-
Method Details
-
getIdToken
Returns theID Token
containing claims about the user.- Returns:
- the
OidcIdToken
containing claims about the user.
-