Skip to content

Client secrets

A client secret holds the credentials that Cellosign uses to get an access token from a token server, OAuth 2.0 style. Cellosign then sends the token with its calls, as Authorization: Bearer <token>, so the API it calls knows the call comes from you. Use a client secret when a webhook or workflow calls an API that expects a bearer token, and for the providers that need one: Microsoft Graph email, Simasti SMS and Scanovate identity verification.

You set up client secrets in the Client Secret card, under External Integrations on the Integrations page. The card is shown in every project. To see or change secrets you need the Implementer, Project manager or Organization manager role.

Where Setting Types you can select
WebHook card, including Customer Authentication webhooks Under Authentication, select Authentication with client secret token provider, then the secret under Client Secret. Any
Web Service task of a workflow Authentication Type: Client secret authentication, then Client Secret. Any
EMAIL Integration card, Microsoft Graph sendMail Azure AD Credential (msgraph) Microsoft Graph REST API v1.0
SMS Integration card, Simasti Simasti Credential Simasti SMS
CIV Integration card Scanovate credential Scanovate BTR v3.7.5
Salesforce connector Created by the connector The Salesforce types

A secret can be used only in its own project. One secret can be used in several places.

  1. In the left menu, click Integrations.
  2. Click Add in the Client Secret card. A new row and the form open below the list.
  3. Select the Type, and fill in the settings below. See Types for the values of each type.
  4. Click Save. The form stays open.
  5. Under Test connection, click Test. Cellosign asks the token server for a token and shows Connection successful, or the error.

The Client Secret card with a new secret of type Microsoft Graph REST API v1.0: url, grant_type, scope and the client ID and secret boxes

Setting What it does
Alias (the box that shows “Default”) A name for the secret. You select the secret by this name where you use it. Required.
Type The kind of token server. See Types. Default: Microsoft Graph REST API v1.0.
url The address of the token server, where Cellosign posts the token request. Required. Up to 256 characters.
grant_type The grant type that Cellosign sends, for example client_credentials or password. Required. Not shown for Simasti SMS.
scope The scopes to ask for. Type a scope and press Enter; add as many as you need. Not shown for Simasti SMS. If you leave it empty, Cellosign saves and sends the value nothing, so enter the scope your token server expects.
Authentication The credentials: client_id and client_secret, or username and password for General - username and password and Simasti SMS. Both are required when you add the secret.

The client_secret (or password) box is always empty when you open a saved secret: Cellosign never shows the saved value. Leave it empty to keep it, or enter a new value.

The type list also has Salesforce - username and password, Salesforce - JWT and Salesforce - RefreshToken. The Salesforce connector creates these secrets itself: don’t add or change them here.

Type Use it for Request
Microsoft Graph REST API v1.0 Microsoft Entra ID (Azure AD) applications, for example to send email through Microsoft Graph Form fields client_id, client_secret, scope, grant_type
General - username and password (v2) Token servers that take a user name and password Form fields username, password, grant_type, scope
General - username and password The same, with an older format of the scope. Keep it for existing secrets. The same
Scanovate BTR v3.7.5 CIV identity verification JSON with client_id and client_secret
Simasti SMS The Simasti SMS provider JSON with the login and password

Except for Scanovate and Simasti, Cellosign posts the request as a form (Content-Type: application/x-www-form-urlencoded) and asks for JSON (Accept: application/json).

Setting Value
url https://login.microsoftonline.com/<tenant ID>/oauth2/v2.0/token
grant_type client_credentials
scope https://graph.microsoft.com/.default
client_id The application (client) ID of your app registration in Microsoft Entra ID.
client_secret The value of a client secret of the app registration.

Request example, with fictional values:

client_id=00000000-0000-0000-0000-000000000000&client_secret=EXAMPLE-SECRET&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&grant_type=client_credentials

When you enter several scopes, Cellosign joins them with commas. Cellosign writes an audit log record each time it gets a new Microsoft Graph token.

To send email with this secret, see EMAIL Integration (Microsoft Graph sendMail).

Setting Value
url The address of your token server.
grant_type The grant type your server expects, often password.
scope The scopes your server expects.
client_id The user name. Cellosign sends it as username.
client_secret The password. Cellosign sends it as password.

Request example, with fictional values and the scopes read and write:

username=tidewell-api&password=EXAMPLE-PASSWORD&grant_type=password&scope=read%2Cwrite

The scopes are sent as one comma-separated value.

The first version of the user name and password type. The boxes under Authentication read username and password. The request is the same as for v2, but the scope is sent in an older format: ('read,write',) instead of read,write.

username=tidewell-api&password=EXAMPLE-PASSWORD&grant_type=password&scope=%28%27read%2Cwrite%27%2C%29

Existing secrets keep this format, so the servers that already use them keep working. For a new secret, use v2 unless your token server expects this format.

Use this type for CIV identity verification with Scanovate BTR. The CIV page has the setup steps.

Setting Value
url The Scanovate token address. It must start with https://, must not include a query or a # part, and must lead to a public internet address.
grant_type Not sent for this type, but the form requires a value. Enter any value, for example client_credentials.
scope Not sent. Leave it empty.
client_id The client ID of your Scanovate account.
client_secret The client secret of your Scanovate account.

Unlike the other types, the request is sent as JSON (Content-Type: application/json):

{
"client_id": "tidewell-civ",
"client_secret": "EXAMPLE-SECRET"
}

Use this type for the Simasti SMS provider. For the settings and the setup steps, see the Simasti section of the SMS page.

Except for Simasti, the token server must answer with HTTP status 200 and JSON that has at least:

{
"access_token": "EXAMPLE-ACCESS-TOKEN",
"expires_in": 3600
}
Field What it’s for
access_token The token. Cellosign sends it as Authorization: Bearer <access_token>. Required.
expires_in How many seconds the token is valid. If it’s missing, Cellosign uses the token for 3,500 seconds (just under an hour).

When the status isn’t 200, the error field of the answer is shown in the error message.

  • Cellosign gets a token the first time a call needs it, and keeps it.
  • It uses the same token until 5 minutes before it expires, and then gets a new one. If your token server gives tokens that are valid for 5 minutes or less, Cellosign gets a new token for every call.
  • When you change a secret, the new settings are used for the next token. A token that Cellosign already has is used until it is about to expire.
  • Last token expired at, in the list, shows when the latest token expires or expired (day, month, year and time). It stays empty until Cellosign gets a token for a call: Test doesn’t keep the token it gets.
  • To change a secret, click its edit button, make the changes, and click Save. You can click Test before or after you save: the test uses the values in the form, and the saved secret when its box is empty.
  • To delete a secret, click its edit button, click Delete, and click Delete again in Confirm Delete. Its tokens are deleted too. Before you delete a secret, select another one wherever it is used.

Client secrets aren’t included in project backups. After you restore a project from a backup, add the secrets again and select them where they are used. See Backup and Recovery.

Test shows the HTTP status of the token server’s answer, and what went wrong:

What you see What to check
<status>: failed: <error>, for example 400: failed: invalid_client The token server refused the request. The text after “failed:” comes from the server. Check the credentials, grant_type and scope.
<status>: could not parse content The answer isn’t JSON. Check the url. With status 597, 598, 599 or 499, Cellosign couldn’t get an answer: the server didn’t answer in time, the connection failed, or the address isn’t valid or isn’t allowed.
has no access token The answer has no access_token field.
Microsoft returns an error about the scope Use https://graph.microsoft.com/.default, not the value nothing that is saved when scope is empty.
The secret isn’t in the list where you want to use it The list shows only secrets of the project, and only secrets of the right type (see Where client secrets are used).