Configure a TotalAgility OAuth client
Configure the TotalAgility OAuth clients.
-
Navigate to
.
The TotalAgility OAuth clients page appears.
-
Click
New.
The New client dialog box is displayed.
- In the Name box, enter a unique name for the OAuth client.
- In the Description box, enter a description for the OAuth client.
-
On the
Provider list, select the
provider and define it.
-
Internal: See Configure the OAuth client using an internal provider.
-
External: See Configure the OAuth client using an external provider.
-
- Click Save.
Configure a TotalAgility OAuth client using an internal provider
For the internal provider, TotalAgility defines the client, generates access tokens and authenticates the client.
-
On the
Authentication method list, select either
option.
Client ID is system generated read-only alphanumeric string to identify the client.
Client secret Client assertion To generate a client secret string, click Generate.
The secret string is generated. You must keep a copy of the client secret.
On the General tab, the following read-only fields appear:
-
Issuer: Displays the Client ID.
-
Subject: Displays the Client ID.
-
Audience: The address of the authenticating server.
-
Click the Signature tab.
-
On the Signature verification method list, select either option.
Shared secret Public key Select Local or External and then provide the secret string.
Select either option:
-
Certificates: Enter the public keys of the certificates. The public key for Certificate 1 is mandatory. You can provide a maximum of three public keys.
-
JSON web keys: Enter the web key in the JSON format.
-
-
- For Access token validity duration, enter or select the duration for which the token should remain valid. (Default: 60 Minutes, Minimum: 5 Minutes) .
- On the Resource list, select the resource to apply its access control settings for the REST SDK API calls made using the OAuth access token.
-
Optional. You can provide an extra authentication while
generating the access tokens and for the REST API calls by providing client
certificate thumbprints for mTLS.
You can specify a maximum of three client certificate thumbprints.
- Click the Certificate tab.
- In the Certificate thumbprint 1 box, enter the thumbprint of a client certificate.
TotalAgility checks if the client certificates are matching with the given thumbprints and accordingly generated the access tokens.
Configure a TotalAgility OAuth client using an external provider
For the external provider, an authorized third-party provider generates the access tokens, defines the clients, and authenticates the clients. At runtime TotalAgility validates the third-party access token for issuer, client address, and signature.
- To accept the access tokens only from the active third-party providers, select Active.
- In the Issuer box, enter a valid URL address of the third-party provider that can be verified from the JWT (JSON Web Token) access token.
- In the Audience box, enter the client address that can be verified from the JWT access token.
-
For
Access token validity
duration, enter or select the duration within which an access token
is considered valid. (Default: 0 Minutes, which means the token remains valid
until the expiry time of the token is reached.)
Before setting the validity duration, ensure that the iat claim (time at which the token was created) is present in the access token. The iat claim is used to calculate the validity duration of a third-party access token. For example, if iat claim of an access token is 12:00 pm, and the access token validity duration is set to 10 minutes, the token is considered valid till 12:15 pm. The extra five minutes are added by Microsoft libraries when validating tokens to adjust for clock skew between computers.
-
On the
Access control list,
select either option:
-
Resource: Select the resource to apply its access control settings for the REST SDK API calls made using the OAuth access token.
-
Custom process: Select a synchronous process that returns the ID of the resource whose access control settings are to be applied for the API calls made using the access token.
Or, you can create a new process by clicking Create new process. See Create a new synchronous map for more information.
-
-
Define whether the signature is verified using a shared secret
or a public key.
- Click the Signature tab.
-
On the
Signature verification
method list, select either option.
Shared secret Public key Select Local or External, and then provide the secret string.
Select either option:
-
Certificates: Enter the public keys of the certificates. The public key for Certificate 1 is mandatory. You can provide a maximum of three public keys.
-
JSON web keys: Enter the web key in the JSON format.
-
Delete a TotalAgility OAuth client
You can delete an OAuth client.
- On the TotalAgility OAuth clients page, on the context menu of the OAuth client, click Delete.
-
Click
OK.
On confirmation, the OAuth client is deleted and the existing access tokens associated with this client are invalidated.