TotalAgility OAuth clients provide token-based access for external applications calling supported TotalAgility REST SDK APIs.

 

With the internal provider, an application can exchange its client credentials for a time-limited access token. It then uses that token when making API requests, without relying on a person logging in or distributing a shared system session ID.

 

For Tungsten TotalAgility, formerly Kofax TotalAgility or KTA, this provides a practical way to modernize integrations with customer portals, CRM systems and other enterprise applications.

 

Version availability: OAuth client support was introduced in TotalAgility 8.0.1. Specific user mapping, external token providers, client assertions and additional client certificate authentication were added in TotalAgility 8.1.0. The configuration described below includes these later enhancements.

 

Why review existing session-based integrations?

 

Many established integrations use a user session obtained through a login call or a configured system session ID.

 

These mechanisms are not automatically insecure. Problems arise when sensitive values are copied between applications, stored in source code or given broader access than the integration needs.

 

Consider three applications sharing the same system session ID. When that value needs to change, the support team must identify every dependency and coordinate the update.

 

Separate OAuth clients can give each application its own client credentials. This creates a clearer boundary for ownership, configuration and credential management.

 

A session ID is not a password, but it is still sensitive. Moving to OAuth changes how access is obtained; it does not remove the need to protect authentication material.

 

Understand the client ID, secret and access token

 

These values serve different purposes.

 

Item

Purpose

How to handle it

Client ID

Identifies the registered application

Keep it associated with the correct application and environment

Client secret

Authenticates the application when requesting a token

Store it securely on the server side

Access token

Authorizes supported API requests during its validity period

Protect it from disclosure and avoid logging its full value

Resource mapping

Determines the TotalAgility resource whose access controls apply

Configure deliberately and test the resulting permissions

 

The client ID identifies the application. It should not be treated as proof of identity on its own.

 

The client secret provides that proof in the secret-based flow described here. The application exchanges its credentials for an access token, then sends the token in the authorization header of its API requests.

 

A short-lived access token does not automatically make the underlying client secret short-lived. Both need an appropriate management process.

 

Configure a TotalAgility OAuth client

 

The steps below follow the enhanced configuration available from TotalAgility 8.1.0.

 

For the internal-provider approach shown in the slide, start in Integration > TotalAgility OAuth clients and create a new client.

Kofax TotalAgility OAuth client

 

Registering an OAuth client for an external application in TotalAgility.

 

Use a name that makes the application and environment easy to identify, such as Customer Portal Production.

 

The main configuration steps are:

 

  1. Select the provider. Choose Internal when TotalAgility will issue the access tokens.

  2. Choose the authentication method. For this example, use Client secret.

  3. Record the client details securely. TotalAgility generates the client ID and provides a mechanism to generate the secret.

  4. Set the token validity duration. Plan how the application will obtain another token before its current token expires.

  5. Configure the resource mapping. Select the appropriate resource for access control.

  6. Save and test the client. Verify both the operations it should perform and those it should not.

 

The product screenshot shows the beginning of the configuration. Continue through the remaining settings before treating the integration as ready.

 

Follow the official TotalAgility OAuth client configuration guide for the settings available in your installed release.

 

A practical example: connecting a customer portal

 

Suppose a customer portal needs to create an onboarding job and retrieve its progress.

 

With a session-based implementation, the backend might log in using a TotalAgility account or use a configured system session ID.

 

With an internal OAuth client, the interaction follows this sequence:

 

  1. The portal backend retrieves its client credentials from secure storage.

  2. It requests an access token from the configured token endpoint.

  3. It includes that token when calling the supported TotalAgility REST SDK APIs.

  4. It safely reuses the token while valid.

  5. It obtains another token when required.

 

The client secret belongs in the backend. It should not be embedded in browser JavaScript or delivered to portal users.

 

This separates the application credential from personal login credentials. However, it does not automatically establish the identity or permissions of each customer using the portal.

 

If the application acts on behalf of different customers, the portal must still enforce which jobs and documents each customer can access. A valid application token alone does not establish ownership of a requested record.

 

Keep API access appropriate to the application

 

Successful authentication answers one question: did the caller present acceptable credentials?

 

You must also establish what that caller is allowed to do.

 

For an onboarding portal, creating an application and checking its status may be legitimate. Administrative operations or access to unrelated customer documents may not be.

 

Review the resource mapping, applicable permissions and behaviour of the actual endpoints. Do not assume that every OAuth token automatically has restricted access simply because it expires.

 

Where practical, use separate clients for different applications and environments. This makes ownership clearer and helps avoid one application depending on credentials intended for another.

 

TotalAgility also supports an external-provider configuration for authorized third-party token issuers. That requires its own issuer, audience and signature validation settings. The internal-provider example above should not be copied unchanged into that arrangement.

 

Plan token handling before production

 

An integration that works during a short test can still fail when its first token expires.

 

Token handling should be part of the application design, including secure caching, renewal timing and useful error reporting.

 

Test

What to confirm

Valid credentials

The application can obtain a token and complete its intended operation

Invalid credentials

Authentication fails without exposing credentials in logs

Token expiry

The application obtains another token through the documented flow

Restricted operation

Access controls behave as intended for that endpoint

Credential change

The application can adopt the replacement credential through the planned process

Network timeout

Recovery does not blindly repeat a job-creation request

 

The final test matters because authentication and duplicate prevention solve different problems.

 

If a request creates a job but its response is lost, obtaining another token does not tell you whether the original request succeeded. Resolve the submission outcome before retrying an operation that could create duplicate work.

 

Migrate one integration at a time

 

Start with an inventory of the applications calling TotalAgility. Record their endpoints, authentication methods, owners and required operations.

 

Choose one integration that is straightforward to test. Configure its OAuth client, validate permissions and exercise expiry and recovery scenarios before changing the next application.

 

Retire old credentials only after confirming their remaining dependencies. A shared system session ID may also be used by other components, so changing it requires a separate impact assessment.

 

For existing environments, this review can form part of a wider TotalAgility support and maintenance assessment.

 

Frequently asked questions

 

Which TotalAgility version introduced OAuth client support?

 

Native OAuth client support for external applications accessing TotalAgility REST APIs was introduced in TotalAgility 8.0.1. TotalAgility 8.1.0 expanded the capability with external token providers, client assertions, specific user mapping and additional client certificate authentication. Check the installed release before following configuration instructions, because the available settings differ between these versions.

 

Can OAuth replace session IDs for every TotalAgility API?

 

Do not assume that OAuth support is identical across every interface. This article covers the documented TotalAgility REST SDK API approach. Check the specific endpoint, deployment and installed release before changing an integration. Existing SOAP services, direct SDK calls and user interface sessions need their own review rather than a blanket authentication replacement.

 

Does OAuth mean that no credentials need to be stored?

 

No. A secret-based OAuth client still needs its client secret, and the application must also protect its access tokens. The improvement is that it can use application credentials instead of distributing personal login details. Store sensitive values securely, control who can retrieve them and keep them out of source code, browser code and routine logs.

 

What should the application do when an access token expires?

 

The application should obtain another access token using the flow supported by its configured provider. Plan this behaviour before production rather than waiting for repeated API failures. For requests that change data or create jobs, also check the outcome of an earlier attempt before retrying, especially when a timeout leaves the result uncertain.

 

Does configuring an OAuth client make the integration secure automatically?

 

No. OAuth addresses part of the access design. The integration still needs appropriate permissions, protected credentials, encrypted connections and controlled handling of customer data. Test the complete path from the calling application to the requested TotalAgility operation. A successful token request proves authentication worked; it does not prove that the entire integration has the intended security controls.

 

Flexinta provides TotalAgility consulting and integration services to review existing API connections, configure application access and modernize integrations around business requirements.