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.
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
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:
|
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.
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].
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.
|
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. |
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.
- From the Main menu, go to .
- Click the row of the client that you want to edit.
- Update any relevant fields.
- Click Save.
Disable an OAuth client registration
Disable an OAuth client to prevent new authorization requests without deleting the registration.
- From the Main menu, go to .
- Click the row of the client that you want to disable.
- Disable the Enabled option.
- 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.
- From the Main menu, go to .
- Click the row of the client that you want to enable.
- Enable the Enabled option.
- 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.
- From the Main menu, go to .
- Select the checkboxes for the clients you want to delete.
- Click Delete.
- 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.
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.
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.