Auth0 Postman Setup Guide - Acrylic125/nextjs-starter GitHub Wiki

Setting up Postman

In Postman, go to or create a workspace. Next, go to Environments, set the following environment variables:

Auth0 Environment Variables

These values can be found in the Auth0 dashboard for the application.

Go to Collections, and go to or create a collection.

Collection Setup

Here, go the Authorization tab. Set the Type to OAuth 2.0. Then, select the environment of the collection to the environment you created in the previous step.

Now, configure Configure New Token as follows:

Configure Token

These values should have been defined in the environment variables you created previously. Once you are done, click Get New Access Token. Since Authorize Using Browser is selected, you should be redirected to the login page. Login with the account you wish to use. Once you are done, a popup requesting to redirect you back to postman should appear. If not, ensure Popups and redirects is enabled on the browser for the domain, https://oauth.pstmn.io/.

Fixing Issues

If you are getting authentication issues when trying out the endpoints, try syncing your browser's cookies to postman. Refer to the following guides to do so: https://learning.postman.com/docs/sending-requests/capturing-request-data/interceptor/

References