Token Generation
Automatic Authentication to Datasets in Developer Portal - Users are now automatically authenticated to datasets they have access to. If a user is logged in and has access to a particular dataset, they can execute actions within that dataset seamlessly without the need for generating a token or filling in authorization details. The system will automatically authenticate the user by checking their access permissions.
However, if users prefer or require manual
token
generation for any reason, the following steps outline the process:
The token can be generated using your S&P Global Single Sign-On credentials via the Token Generation
API endpoint.
1. Go to the Documentation Tab of Token Generation.
2. To use the Token Generation API endpoint, Click on “Try it out”.
3. The /auth/api endpoint requires your S&P Global Single Sign-On credentials (email and password). Provide these details, then click Execute.
4. Scroll down to the Responses section; copy the access token
as highlighted below—quotation marks excluded.
Note - The Access token will be valid for 1 hour. To refresh the token please follow below steps.
Steps to Refresh the Token –
Note - A refresh token is not required for executing datasets through the Service Catalog. However, it becomes valuable during integration when users seek to extend the validity of their current token.
5. Navigate to the "Documentation" tab on the Token Generation page.
6. Locate and click on the "Refresh Token" endpoint & then on “Try it out”.
7. The /auth/api/refresh endpoint requires the input parameter “refresh_token” which you can obtain from the authentication output (Step 4). Refer to the highlighted section below in the screenshot for clarity.
8. Execute the endpoint by providing the "refresh_token" as input.
9. Copy the access token as shown in the screenshot below (excluding the quotation marks).
Note - The refresh token lifetime is 7 days but expires every 24 hours if it hasn't been used