Step 10: Accept device authorization grant consent

POST {{authPath}}/{{envID}}/flows/{{flowID}}

To respond to the DAG_CONSENT_REQUIRED flow state, the user initiates the deviceAuthGrant.consent action. The flow service calls the POST /{{envID}}/flows/{{flowID}} endpoint operation and uses the application/vnd.pingidentity.deviceAuthGrant.consent+json custom media type in the Content-type HTTP request header to identify the action.

The request body requires the accept property, which when set to true accepts the consent agreement. In this workflow, if the deviceAuthGrant.consent action completes successfully, the flow completes.

Request Body

{"accept"=>true}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Cookiestring