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 flow, the Tanium Server redirects the user to the Tanium UI to approve or deny access. The Tanium Server acts as the authorization server. No external identity provider is required.

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. 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. For example, if the OAuth client has two roles defined, the user who wants to submit requests must have both of the roles to authorize successfully. 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.

Note: OAuth clients are for MCP server connections to Tanium. They do not affect how users sign in to the Tanium UI, or through Tanium REST and GraphQL APIs.
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.

Note: You must have the Oauth Clients write permission. The Administrator 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. 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.
  4. Enter a Name for the client and optionally, a Description.
  5. 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. Select one or more Roles to assign to the 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 Administrator role, you do not need to explicitly assign the MCP User role.
  7. Click Register. The Save your credentials dialog appears.
  8. Copy all the credentials into a plain text editor or other safe location.
    Important: A Client Secret is issued only if you enabled OAuth 2.0 Support. The Client Secret appears only once and cannot be retrieved afterward. If the secret is lost, you must register a new OAuth client.
  9. 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, the Tanium Server 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 Administrator 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: 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 Administrator 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 Administrator 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 Administrator 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.

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.