Reference: Configuring Identity Providers to use with Device Management
-
auth0
-
Entra ID
-
Okta
-
OneLogin
For example, the Okta App Admin role provides the needed permissions: Manage Profile Editor, Manage Profile Mappings, View applications or application instances, Add and configure applications, Assign user access to applications, and Create and modify an OIDC App.The IdP must have the application configured as a Single Page Application (SPA) using Proof Key for Code Exchange (PKCE).
Before you begin
Before you configure an IdP, you must configure an Apple Push Certificate to use with Device Management. For more information, see Configure an Apple Push Certificate to use with Device Management. After you configure the push certificate, copy the Redirect URI for your Device Management instance:
From the Main menu, go to . Click Settings and then click IDP Configuration. Copy the Redirect URI.
OIDC requirements
The IdP application must meet the following requirements to integrate with Device Management:
-
OAuth flow: Authorization Code with Proof Key for Code Exchange (PKCE). Configure the application as a public client (Single Page Application) with no client secret.
-
Scopes: Grant the openid, email, and profile scopes to the application.
-
ID token claims: The ID token must include the email claim, which Device Management uses as the user identity on the device. The name claim is optional. If the ID token does not include the email claim, Device Management retrieves the email from the IdP UserInfo endpoint using the access token.
-
Audience: The aud claim in the token must contain either the Issuer URL or the Client ID that is configured in Device Management .
-
Issuer URL and discovery: Device Management retrieves the IdP configuration from {IssuerURL}/.well-known/openid-configuration and verifies that the issuer field in the response matches the Issuer URL configured in Device Management exactly. The trailing slash, scheme, and path must all match. A mismatch is the most common cause of the error getting oauth2 endpoint error during enrollment.
-
Cross-origin resource sharing (CORS): The enrollment flow runs in the browser, so the IdP token endpoint must allow cross-origin requests from the Device Management Redirect URI host. For most IdPs, the token endpoint is configured for CORS automatically when you select the Single Page Application application type. If the IdP does not configure CORS automatically, configure the token endpoint to return the following headers:
-
Access-Control-Allow-Origin: <Redirect URI host>
-
Access-Control-Allow-Methods: POST
-
Access-Control-Allow-Headers: Content-Type
-
auth0
For more information about configuring auth0, see auth0 documentation: Applications in Auth0.
-
From the auth0 menu, click .
-
Click Create Application.
-
Specify a Name for the application and select Single Page Web Application. Click Create.
-
On the application page, click the Settings tab.
-
In the Allowed Callback URLs field, enter the URI that you copied from the Device Management settings.
-
Copy the Domain and Client ID from the application details and save it for use in Device Management.
-
Return to Tanium Console. From the Main menu, go to . Click Settings
and then click IDP Configuration.
-
Set the Client ID to the Client ID value that you copied from auth0, and set the Issuer as the Domain that you copied from auth0, with https:// added to the beginning. For example, https://123456.us.auth0.com. Click Apply.
Microsoft Entra ID
For more information about configuring Microsoft Entra ID, see Microsoft Entra Documenation: Single-page application: Code configuration.
-
From the Entra menu, click Enterprise Applications.
-
Click New Application.
-
Click Create your own application.
-
Specify a name for the application.
-
Select this option: Integrate any other application you don’t find in the gallery.
-
Click Create.
-
From the Entra menu, click App registrations.
-
Click the name of the app that you created.
-
Click Add a Redirect URI.
-
Confirm that the Supported account types field is set to Accounts in this organizational directory only.
-
In the Platform configurations section, click Add a platform.
-
Click Single-page application.
-
In the Redirect URIs section, enter the URI that you copied from the Device Management settings. Click Configure.
-
Click Overview to return to the application details.
-
Copy and save the value for the Application (client) ID.
-
Click the Endpoints tab. Copy and save the value for the OpenID Connect metadata document value, omitting the /.well-known/openid-configuration from the end.
-
Return to Tanium Console. From the Main menu, go to . Click Settings
and then click IDP Configuration.
-
Set the Client ID to the Application (client) ID value that you copied from Entra ID, and set the Issuer as the OpenID Connect metadata document (omitting the /.well-known/openid-configuration from the end) that you copied from Entra ID. Click Apply.
Okta
For more information about configuring Okta, see Okta documentation: Create OpenID Connect app integrations.
-
From the Okta Admin Console menu, click .
-
Click Create App Integration.
-
For the sign-in method, select OIDC - OpenID Connect, and select Single-Page Application for the application type. Click Next.
-
Specify a name for the application in the App integration name field.
-
In the Sign-in redirect URIs field, enter the URI that you copied from the Device Management settings.
-
In the Controlled access section, select an assignment. Leave the other settings at their default values. Click Save.
-
On the application page, click the Sign On tab.
-
Copy the value for Audience.
-
Note the URL for the Okta instance where you configured the application. For example, https:/myorg.okta.com.
-
Return to Tanium Console. From the Main menu, go to . Click Settings
and then click IDP Configuration.
-
Set the Client ID to the Audience value that you copied from Okta, and set the Issuer as the Okta instance URL. Click Apply.
OneLogin
For more information about configuring OneLogin, see OneLogin Docs: OpenID Connect (OIDC) Custom Connector.
-
From the OneLogin administration menu, click .
-
Click Add App.
-
Search for OpenID Connect (OIDC).
-
Click the app to add it.
-
Specify a Display Name and, optionally, the icons for the app. Click Save.
-
Click the Configuration tab.
-
In the Redirect URI's field, enter the URI that you copied from the Device Management settings.
-
On the SSO tab, set the Application Type to Web and the Authentican Method to None (PKCE).
-
Copy and save the Client ID and Issuer URL.
-
Return to Tanium Console. From the Main menu, go to . Click Settings
and then click IDP Configuration.
-
Set the Client ID to the Client ID value that you copied from OneLogin, and set the Issuer as the Domain that you copied from OneLogin. Click Apply.
Troubleshooting
Error: error getting oauth2 endpoint
- Cause
-
During enrollment, Device Management could not match the issuer field returned by the IdP discovery document to the Issuer URL configured in Device Management . The most common cause is a difference in the trailing slash, scheme, or path between the two values.
- Solution
-
Compare the Issuer URL configured in Device Management against the issuer field returned by the IdP discovery document, and update the Device Management setting to match exactly.
-
In a browser, open {IssuerURL}/.well-known/openid-configuration and note the value of the issuer field in the response.
-
From the Main menu, go to . Click Settings
and then click IDP Configuration.
-
Verify that the Issuer value matches the issuer field from the discovery document exactly, including trailing slash, scheme, and path. Update the value if necessary and click Apply.
-
iOS, iPad, iPadOS, iPhone, Mac, and macOS are trademarks of Apple Inc., and registered in the U.S. and other countries and regions.