Skip to main content
Once the OAuth flow is completed, the user will be redirected to the success or failure url. The success url will contain 2 query parameters intentId and intentToken. In order to validate the intent created in previous step, we need to call the following endpoint
curl --request POST \
  --url https://dev-iam.razi.ai/v1/authentication/idp/intents/validate \
  --header 'Content-Type: application/json' \
  --header 'X-App-Name: ' \
  --data '{
  "intentId": "163840776835432705",
  "idpToken": "JtERDtsWJPHHvkb0RWT3t_xu3KQimKbPdWzgYWJd26z3Rw"
}'
The above API implements below flow in backend: