Accept Device Authorization Grant Consent
POST {{authPath}}/{{envID}}/flows/{{flowID}}
The POST /{{envID}}/flows/{{flowID}}
operation uses the application/vnd.pingidentity.deviceAuthGrant.consent+json
custom media type in the request header to specify that a consent action is required.
An authentication flow can prompt users to consent to (or reject) an agreement. The flow configuration determines whether consent is required. If the user does not have any recorded consents that satisfy any of the agreement languages, then the flow requires user consent.
Prerequisites
Send an authorize request to get a user code: Device Authorization.
See also the
DAG_CONSENT_REQUIRED
flow state in the Flow status values table.
Note: After accepting consent, a record is stored in the user's OAuth Scope Consents. If the user refuses to consent to the terms of service agreement, the flow fails.
Property | Type | Required? |
---|---|---|
accept | Boolean | Required |
See the Flows for full property descriptions.
Request Body
{"accept"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Cookie | string |