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:
-
Open Swagger: https://<your Tosca Cloud URL>/_identity/apiDocs/swagger/index.html
-
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.
-
Retrieve the client ID and the application ID:
-
Select GET /_identity/api/v1/applications.
-
Select Try it out, then Execute.
-
In the response body, scroll to the application that fits your use case. Each application has the respective clientId. It also has the application's id, which you'll need in the next step, to get the client secret.
The following table lists use cases and their applications:
Use case
Application
Simulator Agents
Set up the test execution integration with Tosca on-prem (opens in new tab)
Tosca Server
Tricentis Cloud API
Tricentis Cloud API
Tricentis Cloud API
E2G_Agents
-
-
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:
-
Open Swagger: https://<your Tosca Cloud URL>/_identity/apiDocs/swagger/index.html
-
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.
-
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.
-