For OAuth authentication in Postman, you will need the following:
-
The Client ID, Client Secret, and Default Redirect URI from your integration on the Adobe I/O console.
-
Your Global Company ID. If you do not know your Global Company ID, you can find it in the request URL for the
users/me
endpoint on the Swagger UI. After logging into the Swagger UI, expand theusers
endpoint and then click the GET users/me button. Click the Try it out and Execute buttons. Note your Global Company ID shown in the Request URL immediately preceding theusers/me
endpoint.
To configure the OAuth authentication request:
- Click the Authorization tab on the Request screen.
- In the TYPE dropdown, select OAuth 2.0.
- Click the Get New Access Token button.
- On the GET NEW ACCESS TOKEN form, provide the following values:
Parameter | Value |
---|---|
Token Name | Specify a name |
Grant Type | Select Authorization Code from the dropdown |
Callback URL | Enter your OAuth client default redirect URI |
Auth URL | https://ims-na1.adobelogin.com/ims/authorize/v1 |
Access Token URL | https://ims-na1.adobelogin.com/ims/token/v1 |
Client ID | Enter your Client ID from Adobe I/O |
Client Secret | Enter your Client Secret from Adobe I/O |
Scope | Enter openid,AdobeID,read_organizations,additional_info.projectedProductContext,additional_info.job_function |
Client Authentication | Select Send client credentials in body from the dropdown |
-
Click Request Token. You will be prompted to login. Click the Use Token button at the bottom of the resulting pop up screen. The token automatically populates the Available Token field.
-
Enter the request URI path you want to call, including your Global Company ID as shown below, and then click the Preview Request button. This updates the request header with the token value.
If you have already requested other tokens in Postman, you can select them from the Available Tokens dropdown.
-
Specify the method from the Postman request dropdown. Click the Headers tab. In the Postman Headers table, the Authorization KEY contains a corresponding Bearer token VALUE.
-
On the next row, add the header KEY
x-proxy-global-company-id
and enter you Global Company ID as the VALUE. -
On the next row, add the header KEY
x-api-key
and enter your Client ID as the value.
- Click the Send button. The
GET
/users response includes the first 10 users for your Analytics company. You are now also authorized to work with other Analytics endpoints.