Skip to main content

OAuth 2.0

Pre-Requisites

  1. If not already installed on your laptop, download and install Postman from the Internet. Alternatively, you can use the online web version of Postman.
  2. Create a workspace, if required, and click “Import”, “select files” and navigate to the location where you downloaded the lab materials in Exercise A. From the “Postman” folder, select the 9 Postman Collections - “Exercise X -...” files (I-Q).
  3. Click “Import”, “select files” and again from the “Postman” folder select the “Workshop.postman_environment.json” file.
  4. Within the “Environments” tab, select the newly-created “Workshop” environment and enter a “CURRENT VALUE” for each of the variables that matches your environment (or come back to this later when you have completed the config in Exercise I).
  • “baseurl” - should look like your own version of “https://martin.uksouth.cloudapp.azure.com/”

  • “redirect_uri” - “https://oidcdebugger.com/debug”

  • “client_id” (your value will come from Exercise I, step 70)

  • “client_secret” (your value will come from Exercise I, step 71)

  • “access_token” - leave blank as this will get auto-populated later.

  • “refresh_token” - leave blank as this will get auto-populated later.

    note

    If you are using the online version of Postman, the “current value” settings are lost whenever you perform a fresh login to Postman. In that case, ensure to copy the relevant values to the “initial value” also.

  1. Save changes.
  2. On the Collections tab, top right hand corner, select the dropdown arrow and choose the “Workshop” environment you just setup.
  3. You are now ready to use Postman in the coming lab exercises.