Step 11: Call the resume endpoint

GET {{authPath}}/{{envID}}/as/resume?flowId={{flowID}}

After completing the actions specified by the sign-on policy, the authentication flow completes and the user is redirected to the URL specified in the resumeUrl property in the flow resource.

You can use the GET /{{envID}}/as/resume?flowId={{flowID}} endpoint to obtain the access token. The response returns a 302 HTTP Status message and a Location HTTP header that includes the token.

The Location header for the /resume endpoint looks like this:

Location: https://www.redirect-domain.com?token=eyJhbGciOiJSUzI1NiIsImtpZCI6ImR....

Note: If this call fails to return a 302 HTTP Status, for a possible solution see Configuring and managing Qodex.

Request Params

KeyDatatypeRequiredDescription
flowIdstring