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.
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, 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].
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.
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.