Authenticate to Your Trailhead Playground Org

After configuring the connected app, you must authorize your user with the connected app.

Authorize the app

Construct a URL by using this format.

YOUR_ORG_URL/services/oauth2/authorize?response_type=code&client_id=YOUR_CONSUMER_KEY&scope=api refresh_token offline_access &redirect_uri=https://oauth.pstmn.io/v1/callback
  • YOUR_ORG_URL is the fully qualified instance URL.
  • YOUR_CONSUMER_KEY is the consumer key noted when you set up the connected app.

Next, paste the URL into a browser and execute it, and then select Allow for each of the scopes requested in the modal that appears. If you receive an alert from the callback, select Open Postman.. To verify that everything is authorized, from Setup, in the box, enter Connected Apps OAuth Usage, and confirm that you see your connected app with a user count of 1.