Create OAuth Callback
POST {{authPath}}/{{envID}}/davinci/oauth2/callback?code={{code}}&state={{state}}
After an end user provides the input required by the flow, the callback endpoint returns the flow to the authorization server. This endpoint takes an authorization code
value (for authorization_code
grant use cases) and (optionally) a state
value as query parameters in the request URL. The sample shows the POST {{authPath}}/{{envID}}/davinci/oauth2/callback?code={{code}}&state={{state}}
operation.
Prerequisites
- See PingOne DaVinci and DaVinci Auth APIs for important overview information.
Property | Description |
---|---|
code | A string that specifies the authorization code returned by the authorization server, which will be exchanged for an access token. |
state | A string used to validate the response. A state value can be sent with the initial authorization request and then used later to check for a match when processing the flow response. |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
code | string | ||
state | string |