Response types
The authorization request must specify a response_type attribute, which determines whether an access token, an authorization code, or an ID token is returned by the authorization server. The following is the list of the OAuth 2.0 response types supported by the PingOne authorization server:
-
codeReturns an authorization code. If the grant type is
authorization_code, theresponse_typeattribute must have thecodevalue. The authorization code returned by the request is exchanged for an access token to complete the authorization flow. -
tokenReturns an access token. If the grant type is
implicitorclient_credentials, theresponse_typeattribute can specify thetokenvalue to return an access token. -
id_tokenReturns an ID token. If the grant type is
implicit, theresponse_typeattribute can specify theid_tokenvalue to return a JWT containing a set of claims that represent the authentication state of an end user. -
id_token(OpenID Connect ID token)If the request contains the
id_tokenresponse type and theopenidscope, then it is considered an authentication (OpenID Connect) request, and an ID token is issued. The ID token includes the ID of the user; this request can also include theprofilescope to add additional user claims to the ID token.