Enabling third-party authentication through OAuth clients

OAuth clients enable Model Context Protocol (MCP) servers to connect to Tanium using the OAuth 2.0 and OAuth 2.1 authorization code flow. When an integration initiates the authorization code flow, Tanium Cloud redirects the user to the Tanium UI to approve or deny access. Tanium Cloud acts as the authorization server. No external identity provider is required.

OAuth clients use one of two grant types:

  • Authorization Code: A user signs in to the Tanium UI, selects a persona if the user has more than one, and approves the client. The token acts as that user under the selected persona.

  • Client Credentials: No user signs in and no approval step occurs. The integration authenticates with the client ID and client secret. The token acts as the user who registered the client, under a persona that is set when the client is registered. For more information, see Client Credentials tokens and personas.

Register a separate OAuth client for any integration that supports OAuth 2.0 or OAuth 2.1. Each OAuth client is issued a client ID, which the integration uses to request access tokens. Client Credentials clients, and Authorization Code clients with OAuth 2.0 Support enabled, are also issued a client secret.

The effective permissions associated with a token include the Tanium roles assigned to the OAuth client at registration and the Tanium roles assigned to the user who submits a request. The token can use only the permissions that are granted by both the client roles and the selected persona of the user. Authorization fails only if none of them overlap. If you update an OAuth client registration with new or different roles, these permission updates are reflected automatically in the next request, without needing to issue a new token.

For a Client Credentials client, no user submits requests. The token acts as the user who registered the client, as described in Client Credentials tokens and personas.

Note: OAuth clients enable integrations to connect to Tanium through the MCP server or, for a Client Credentials client, directly through Tanium REST and GraphQL APIs. They do not affect how users sign in to the Tanium UI.
Note:

Use a dedicated OAuth client for each integration. For example:

  • Use a dedicated client for a ServiceNow integration and another dedicated client for a Splunk integration

  • Use a dedicated client for each ServiceNow instance

  • Use a dedicated client for each connection to a single ServiceNow instance

If the client secret is rotated or the OAuth client is deleted, all integrations that share that registration lose access.

You can view, edit, or delete registered OAuth clients. Delete a registered client if you no longer want to integrate with a third party, or if an OAuth client secret or token is compromised.

Network requirements for MCP servers

MCP servers connect AI models to external tools and data sources. When an MCP server requires access to Tanium, the server authenticates with an OAuth client registration.

To use OAuth 2.0 and 2.1 authentication with Tanium, make sure your firewall rules allow inbound HTTPS traffic (port 443) from your integration environment to the following endpoints in the Tanium instances:

Table 1. OAuth 2.0 and 2.1 network endpoints

Endpoint

Purpose

<TaniumURL>-api/.well-known/oauth-authorization-server

Authorization server discovery

<TaniumURL>-api/.well-known/oauth-protected-resource

Protected resource discovery

<TaniumURL>-api/oauth/authorize

Authorization request

<TaniumURL>-api/oauth/token

Token exchange and refresh

<TaniumURL>-api/oauth/revoke

Token revocation

Register an OAuth client

Register an OAuth client to grant an external integration authenticated access to Tanium.

Tip: You can also register an OAuth client in Tanium Atlas. For more information, see Register an OAuth client.
Note: You must have the Oauth Clients write permission. The Admin reserved role contains this permission.
  1. From the Main menu, go to Administration > Permissions > OAuth Clients.
  2. Click Register Client.
    Note: If Console cannot load the role catalog, the Register Client option is unavailable. A message explains why and provides a Try again button.
  3. Enter a Name for the client and optionally, a Description.
  4. Select a Grant Type:
    • Authorization Code: A user signs in to the Tanium UI and approves the client. Tokens carry the roles shared by that user and the client.

    • Client Credentials: Machine-to-machine, with no user signing in. The client authenticates with its own secret and acts as the user who registered it, under the persona you are using when you register it. For more information, see Client Credentials tokens and personas.

  5. If you selected Authorization Code:
    1. If the integration does not support OAuth 2.1, enable OAuth 2.0 Support.
      Note: Leave OAuth 2.0 Support disabled for most MCP clients, which use OAuth 2.1 by default. You cannot change this setting after you register the client.
    2. Enter one or more Redirect URIs for the integration. Click Add another to add additional URIs.
      Note: Redirect URIs must use HTTPS, except loopback URIs, which can use HTTP. The redirect URI that the integration sends in an authorization request must match a registered URI according to specific rules. If it does not match, authorization fails. For the matching rules, see Redirect URI matching rules.
  6. If you selected Client Credentials, select a Client type: Model Context Protocol or Tanium APIs (REST and GraphQL). A Client Credentials client does not use a redirect URI.
  7. Select one or more Roles to assign to the client. For an MCP client, assign the MCP User role in addition to any other desired roles.
    Note: If you assign a role that includes the MCP Router Api execute permission, such as the Admin role, you do not need to explicitly assign the MCP User role.
    Tip: To enable the client to ask questions through Tanium Atlas MCP Server, include an Interact role, such as Interact Power User. For more information about Tanium Atlas MCP Server role requirements, see Tanium Atlas MCP Server role requirements.
  8. Click Register. The Save your credentials dialog appears.
  9. Copy all the credentials into a plain text editor or other safe location.
    Important: A Client Secret is issued for a Client Credentials client, and for an Authorization Code client with OAuth 2.0 Support enabled. The Client Secret appears only once and cannot be retrieved afterward. If the secret is lost, you must register a new OAuth client.
  10. Click Close.

Redirect URI matching rules

Register the redirect URI exactly as the integration sends it. Loopback URIs have additional matching rules.

When an integration starts the authorization code flow, Tanium Cloud compares the redirect URI in the request with the redirect URIs registered on the OAuth client. If none of the registered URIs match, the authorization request fails.

Schemes and loopback URIs

  • Redirect URIs must use https://, except loopback URIs, which can use http://.

  • A URI is a loopback URI only if it has no user name or password, no query string, and no fragment. Otherwise, the URI is treated as an ordinary URI and none of the loopback allowances apply.

  • The loopback hosts are localhost (in any letter case), any address in the 127.0.0.0/8 range, and the IPv6 loopback address [::1].

Note: Local connectors, such as those that use mcp-remote, use a loopback redirect URI.

How URIs are matched

  • Port (loopback http:// only): The port is ignored. If you register http://127.0.0.1, the URI matches a callback on any port, such as http://127.0.0.1:54321. You do not need to register a port because local connectors choose an available port at run time. Registering a specific port does not restrict the port that the connector uses.

  • Port (all other URIs): The port must match exactly. This includes loopback URIs that use https://.

  • Path: The path must match exactly. A mismatched path is the most common cause of a redirect URI failure. For example, http://127.0.0.1 has no path, so the path is treated as / and does not match http://127.0.0.1:54321/callback. Likewise, http://127.0.0.1/cb does not match a callback that has no path. Register the exact path that the integration uses.

  • Host: The host is compared as text. localhost and 127.0.0.1 are both loopback hosts, but a URI registered with one does not match a callback that uses the other. Register the same host form that the integration uses.

  • IPv6: Use the short bracketed form [::1]. The expanded form [0:0:0:0:0:0:0:1] is not normalized and does not match.

  • Non-loopback URIs: The entire URI, including the port and path, must match exactly.

The following table shows examples of registered redirect URIs and the callback URIs that they match.

Table 2. Redirect URI matching examples

Registered redirect URI

Callback URI

Matches

http://127.0.0.1/callback http://127.0.0.1:54321/callback

Yes. The port is ignored for loopback HTTP URIs.

http://127.0.0.1 http://127.0.0.1:54321/callback

No. The paths differ.

http://localhost/callback http://127.0.0.1:54321/callback

No. The hosts differ.

http://[0:0:0:0:0:0:0:1]/callback http://[::1]:54321/callback

No. The expanded IPv6 form is not normalized.

https://127.0.0.1/callback https://127.0.0.1:54321/callback

No. The port must match exactly for HTTPS URIs.

https://claude.ai/api/mcp/auth_callback https://claude.ai/api/mcp/auth_callback

Yes. Non-loopback URIs must match exactly.

Note: If the redirect URI does not match, Console might display the generic message Failed to load authorization details without identifying the cause. If you see this message, verify the redirect URI that the integration sends against the redirect URIs registered on the OAuth client.

Edit an OAuth client registration

Update an OAuth client Name, Description, Redirect URIs, or Roles from the OAuth client detail page.

After you create an OAuth client registration, you cannot update the Client Secret, Client ID, or the OAuth 2.0 Support enablement. If you want to change these values, delete the existing OAuth client registration and register a new OAuth client.

Note: You must have the Oauth Clients write permission. The Admin reserved role contains this permission.
  1. From the Main menu, go to Administration > Permissions > OAuth Clients.
  2. Click the row of the client that you want to edit.
  3. Update any relevant fields.
  4. Click Save.
Note: For a Client Credentials client, the Redirect URIs field does not appear. Client Credentials clients do not use a redirect URI. The Tanium Atlas Edit OAuth Client panel also hides this field for a Client Credentials client.
Note: If you do not have the Oauth Clients write permission, or if Console cannot load the role catalog, the Roles field renders as read-only badges instead of an editable list. The badges show the roles currently assigned to the client. Try again reloads the role catalog if it failed to load.
Note: If another administrator updates the same OAuth client entry while you edit it, a Refresh client option appears when you save. You can reload the latest values and reapply your changes, or save your changes anyway. If you save anyway, the save overwrites the entire client configuration, including any changes the other administrator made.

Disable an OAuth client registration

Disable an OAuth client to prevent new authorization requests without deleting the registration.

Note: You must have the Oauth Clients write permission. The Admin reserved role contains this permission.
Note: After you disable an OAuth client registration, existing active tokens remain valid until they expire. Disabling the registration does not revoke tokens that have already been issued.
  1. From the Main menu, go to Administration > Permissions > OAuth Clients.
  2. Click the row of the client that you want to disable.
  3. Disable the Enabled option.
  4. Click Save.

On the OAuth Clients page, the Status column for the client now shows as Disabled.

Enable an OAuth client registration

Enable a disabled OAuth client registration to allow the integration to resume authorizing requests.

Note: You must have the Oauth Clients write permission. The Admin reserved role contains this permission.
  1. From the Main menu, go to Administration > Permissions > OAuth Clients.
  2. Click the row of the client that you want to enable.
  3. Enable the Enabled option.
  4. Click Save.

On the OAuth Clients page, the Status column for the client now shows as Enabled.

Delete a registered OAuth client

Delete an OAuth client to permanently remove the registration and revoke all tokens issued to that OAuth client.

Note: You must have the Oauth Clients write permission. The Admin reserved role contains this permission.
Important: Deleting an OAuth client immediately revokes all tokens issued to that client. Any integration that uses that OAuth client loses access.
  1. From the Main menu, go to Administration > Permissions > OAuth Clients.
  2. Select the checkboxes for the clients you want to delete.
  3. Click Delete.
  4. Confirm the deletion.

Authorize access

Integrations that use the OAuth 2.0 or 2.1 authorization code flow require the user to sign in to the Tanium UI, if not already signed in, and approve or deny the authorization. The Authorize Access page contains the name of the application requesting access and a summary of the permissions the integration is requesting. If the user has multiple personas, the page also prompts the user to select a persona.

If you are using a persona when the page loads, that persona is selected. To authorize under your default persona instead, select Default persona.

Figure 1. Authorize Access page
oauth_authorize

Click Authorize to grant the integration access, or Cancel to reject the request. After authorizing, the browser redirects to the registered redirect URI for the integration and shows a confirmation that authentication was successful.

Client Credentials tokens and personas

A Client Credentials client has no consent step. The integration requests a token from the <TaniumURL>-api/oauth/token endpoint with the client ID and client secret.

The token acts as the user who registered the client. When you register a Client Credentials client, the client is pinned to the persona that you are using at that time. The token runs under that persona, even if you later switch to another persona. To register a client under a different persona, switch to that persona before you register the client. A client that you register while you use your default persona runs under your default persona. The same is true for a client that was registered before Client Credentials clients supported persona pinning.

The Console does not provide a way to change the persona of a registered client.

The permissions of the token are the permissions that the persona has and that the roles of the client also grant. The token can reach all of the computer groups that the persona can access. The roles of the client cannot narrow computer group access.

If a client that is pinned to a persona cannot get tokens because the persona was deleted, no longer applies, holds none of the roles of the client, or the user who registered the client is disabled or deleted, the details page of the OAuth client shows a notice. A client that runs under the default persona does not show this notice.

Note: Register Client Credentials clients while you are using a persona that has only the access that the integration needs.

With the Authorization Code grant type, each user signs in, selects a persona on the Authorize Access page, and receives a token scoped to that persona.