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:
These values can be found in the Auth0 dashboard for the application.
Go to Collections
, and go to or create a collection.
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:
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/