Get client ID and secret or access tokens

This topic explains how to get the following access credentials, which you'll need for some setup or integration tasks:

Before you start

Make sure you have administrator rights and a basic understanding of Swagger.

Only administrators can request access credentials, and they're only available via API request.

Request client ID and secret

To get the client secret, follow these steps:

  1. Open Swagger: https://<your Tosca Cloud URL>/_identity/apiDocs/swagger/index.html

  2. Select Authorize and follow the instructions on the screen. For Scopes, make sure to select all. Once the authorization token has been created, close the window.

  3. Retrieve the client ID and the application ID:

  4. Retrieve the client secret:

    • Select GET /_identity/api/v1/applications/{Id}/secrets.

    • Select Try it out.

    • In the Id text field, enter the application ID. Then, select Execute.

    • From the resulting server response, copy the clientSecret.

Manage client secrets

The Swagger page also offers commands to manage your client secret:

  • To generate a new client secret, use POST /_identity/api/v1/applications/{id}/secrets.
  • To delete a client secret, use DELETE /_identity/api/v1/applications/{id}/secrets/{secretId}.

Request an access token

You need an access token to upload whole repositories from Tosca Server Test Data Service. The access token is valid for one hour, and more than one person can use the same access token.

To get an access token, follow these steps:

  1. Open Swagger: https://<your Tosca Cloud URL>/_identity/apiDocs/swagger/index.html

  2. Select Authorize and follow the instructions on the screen. For Scopes, make sure to select all. Once the authorization token has been created, close the window.

  3. Retrieve the access token:

    • Select GET /_identity/api/v1/applications.

    • Select Try it out, then Execute.

    • From the response, copy the value of Authorization, but without the word Bearer.