Articles in this section

Client applications

This article explains the Client applications tab accessible from the Admin Center. A client application lets an AI assistant, such as AWS Quick, Gemini Enterprise, or a Microsoft Copilot Studio agent, connect to the Templafy MCP Server on behalf of your users.

  Prerequisites

  • Admin/owner access to the Templafy tenant.
  • Enterprise plan.
  • MCP Server module enabled.

Overview

The Client applications tab is found in the Admin Center under Account, at https://<tenantname>.templafy.com/admin/account/client-applications. Each client application represents one AI assistant that is allowed to sign your users in to Templafy and use the Templafy MCP Server for them. When you register an application, Templafy gives you everything the AI assistant asks for when you add Templafy as a remote MCP server:

  • a Client ID and a Client secret;
  • your organization's MCP server URL, Authorization URL, and Token URL.

A client application is the default way to connect an AI assistant to Templafy. It works with any AI assistant that supports remote MCP servers with OAuth 2.0 (authorization code with PKCE) and lets you enter your own Client ID and Client secret. Users always sign in with their own Templafy account; the Client secret only identifies the AI assistant.

  Note

You do not need a client application for Claude, ChatGPT, Microsoft 365 Copilot Chat, or Microsoft Copilot Cowork. Templafy maintains the connection for these assistants. See Templafy MCP Server.

The tab lists all registered applications with their Name, Client ID, Status (Enabled or Disabled), and Created at date. Use Search by name to find an application, and select an application to open its details, which are divided into four tabs: Details, Redirects, Secrets, and Scopes.

How to register an application

  1. In the Client applications tab, click Register application
  2. Provide a Name, for example the name of the AI assistant. The name can be up to 50 characters and must be unique.
  3. Optionally provide a Description of up to 250 characters
  4. Under Application settings, paste the redirect URL of the AI assistant in Redirect URI and click Add redirect URI. Repeat this for every redirect URL the assistant uses.
  5. Select when the secret expires under Secret expires in: 90 days, 180 days, 365 days, or Never
  6. Click Register
  7. Copy the Client ID and the Client secret, then click Close
  8. Select the new application and click Enable

  Note

  • The Client secret is only shown once. Store it somewhere safe before you close the dialog. If you lose it, add a new secret.
  • A new application is Disabled. Nobody can sign in through it until you enable it.
  • The redirect URL is defined by the AI assistant and often differs per account, region, or connector. Copy it from the assistant's own setup screen or documentation. If the assistant only shows it after its connector is saved, register the application without a redirect URI and add it afterwards on the Redirects tab.

How to connect the AI assistant

  1. In the Client applications tab, select the application
  2. On the Details tab, copy the Client ID, MCP server URL, Authorization URL, and Token URL
  3. In the AI assistant, add Templafy as a custom or remote MCP server with OAuth 2.0 authentication, and enter these values together with the Client secret
  4. Save the connection in the AI assistant and sign in with Templafy
Field on the Details tab Value What the AI assistant usually calls it
Client ID A unique identifier generated by Templafy Client ID, application ID
MCP server URL https://<tenantname>.mcp.templafy.com Server URL, MCP endpoint, remote MCP server URL
Authorization URL https://<tenantname>.hive.templafy.com/connect/authorize Authorization URL, authorization endpoint
Token URL https://<tenantname>.hive.templafy.com/connect/token Token URL, token endpoint, refresh URL

The Details tab also shows the Status, Created at, and Created by of the application, and lets you change its Name and Description. For step-by-step examples for AWS Quick, Gemini Enterprise, Microsoft Copilot Studio, and other AI assistants, see Templafy MCP Server.

How to manage redirect URIs

A redirect URI, or reply URL, is the location where Templafy sends the user and delivers tokens once the user has successfully signed in. Sign-in only works when the redirect URL the AI assistant sends exactly matches one of the redirect URIs of the application.

  1. In the Client applications tab, select the application
  2. Navigate to the Redirects tab
  3. Enter the redirect URI and click Add redirect URI, or delete a redirect URI that is no longer used
  4. Click Save

  Note

  • Enter the exact URI, including the path. Wildcards (*) and fragments (#) are not allowed.
  • Redirect URIs must use https. Plain http is only allowed for localhost, 127.0.0.1, or [::1].
  • The same redirect URI cannot be added twice.
  • An application can have up to 256 redirect URIs.
  • An application without a redirect URI cannot sign anyone in.

How to add or replace a secret

An application can have several secrets at the same time. This lets you replace a secret without interruption: add a new secret, update the AI assistant, and only then delete the old one.

  1. In the Client applications tab, select the application
  2. Navigate to the Secrets tab
  3. Click Add secret
  4. Select the lifetime of the secret under Expires in
  5. Click Add secret
  6. Copy the Client secret and click Close
  7. Enter the new secret in the AI assistant

How to delete a secret

  1. In the Client applications tab, select the application
  2. Navigate to the Secrets tab
  3. Click the delete icon next to the secret
  4. Confirm the deletion

  Note

  • Secrets are non-recoverable. Each secret is listed with its last four characters, its creation date, and its expiration date, so you can tell them apart.
  • A warning is displayed 30 days before a secret expires. An expired secret no longer works: the AI assistant can no longer sign users in or refresh their connection until you add a new secret and enter it in the assistant.
  • Deleting a secret takes effect immediately. Token requests from an AI assistant that still uses this secret will fail.
  • An application can have up to 30 secrets.
  • Treat a Client secret like a password. Store it in the secret manager of the AI assistant, never in source control, screenshots, email, or shared chat.

How to edit the scopes of an application

Scopes determine what the tokens issued to the AI assistant can be used for. The following scopes are available:

Scope What it does When to use it
offline_access Stay connected without signing in again for every session. Almost always. Without it, users have to sign in again each time their access token expires.
mcp.text_only Responses come back as text, without interactive UI. For example for AWS Quick. Templafy then guides the user through a step-by-step text flow and returns download links, without the interactive Templafy widgets.

Each scope has two settings:

  • Allowed — the AI assistant may request this scope. Both scopes are allowed when an application is registered.
  • Default — the scope is included in every token, even when the AI assistant doesn't request it. A scope must be allowed before it can be a default. No scope is a default when an application is registered.
  1. In the Client applications tab, select the application
  2. Navigate to the Scopes tab
  3. Select/unselect Allowed and Default for each scope
  4. Click Save

  Note

  • Many AI assistants have no field to enter scopes, or request only some of them. Setting a scope as Default is the reliable way to make sure it is applied.
  • Recommended: set offline_access as Default for every AI assistant, and also set mcp.text_only as Default for AWS Quick.
  • Scope changes apply to new sign-ins. Users who are already connected may have to disconnect and connect again in the AI assistant before a change takes effect.

How long users stay signed in

For AI assistants connected through a client application, Templafy issues tokens with these lifetimes:

  • An access token is valid for 15 minutes. The AI assistant renews it automatically with a refresh token, provided the offline_access scope is applied.
  • A refresh token is valid for 7 days and is replaced every time it is used. A user who does not use the connection for 7 days has to sign in again.
  • A session lasts at most 90 days. After 90 days the user signs in again, however often the connection was used.

How to disable or enable an application

  1. In the Client applications tab, select the application
  2. Click Disable
  3. Confirm

To enable the application again, select it and click Enable.

  Note

AI assistants using a disabled application lose access to Templafy. The application, its redirect URIs, secrets, and scopes are kept, so after enabling it again no changes are needed in the AI assistant. Users may be asked to sign in again.

How to delete an application

  1. In the Client applications tab, select the application
  2. If the application is enabled, click Disable and confirm
  3. Click on the ellipsis menu
  4. Click Delete
  5. Confirm

  Note

  • An application must be disabled before it can be deleted.
  • Deleting is permanent. The application and all its access are removed and can't be restored. To reconnect the AI assistant, register a new application and enter its new Client ID and Client secret in the assistant.
admin_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.