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:
- ModHeader browser extension
Steps:
-
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.
-
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.
-
Extract the
access_token
using the online tool.- Clear the top box and paste the URL text into it. The box should show there's 1 match
- The bottom box's content is the extracted
access_token
-
Open ModHeader. If the icon is hidden, click on the Puzzle icon in the upper right of the browser to see it.
-
Type the word Bearer and paste the token into ModHeader Authorization: Bearer \
-
Go to a page in api/v1/ to see that it allows access
-
Explore APIs using Swagger
-
Some fields have hints on how to retrieve the values.
-
A redoc ui is also available