Skip to content

Cognito authentication workflow (pre deployment)

This is a temporary solution until we can deploy a dev environment for PeopleDepot.

There's a few manual steps and the login is good for only an hour at a time.

Prerequisites:

Steps:

  1. Login (or register first then login) to a cognito account here. Do not worry if you see error messages - you will be using the url.

  2. Copy the URL when it redirects. Note: Instead of the screen below, the screen may display an error message. You can ignore any error messages.

    .

  3. Extract the access_token using the online tool.

    1. Clear the top box and paste the URL text into it. The box should show there's 1 match
    2. The bottom box's content is the extracted access_token

  4. Open ModHeader. If the icon is hidden, click on the Puzzle icon in the upper right of the browser to see it.

  5. Type the word Bearer and paste the token into ModHeader Authorization: Bearer \

  6. Go to a page in api/v1/ to see that it allows access

  7. Explore APIs using Swagger

  8. Some fields have hints on how to retrieve the values.

  9. A redoc ui is also available