Reference: (Apple) Configuring Identity Providers to use with Device Management

Device Management supports integration with these Identity Providers (IdPs):
  • OpenID Connect (OIDC) compliant identity provider:

    • auth0

    • Entra ID

    • Okta

    • OneLogin

    Note:

    The identity provider administrator must have access to manage user roles, user permissions, user mappings, and user attributes; configure applications; and assign users to applications. Refer to your identity provider documentation to understand the required roles and permissions.

    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 (Apple) 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 Shared Services > Device Management. Click Settings cog and then click IDP Configuration. Copy the Redirect URI.

Note: This section describes one way to configure these Identity Providers. You might need to modify these steps and the suggested selections and values depending on your environment. Ensure that you test this configuration in a lab or test environment before you use it in a production environment. Consult the documentation for the IdP for detailed steps.

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.

  1. From the auth0 menu, click Applications > Applications.
    Figure 1. Applications link in auth0
    Applications link in auth0
  2. Click Create Application.
    Figure 2. Create application button in auth0
    Create application button in auth0
  3. Specify a Name for the application and select Single Page Web Application. Click Create.
    Figure 3. Single Page Web Application option in auth0
    Single Page Web Application option in auth0
  4. On the application page, click the Settings tab.
    Figure 4. Settings tab in auth0
    Settings tab in auth0
  5. In the Allowed Callback URLs field, enter the URI that you copied from the Device Management settings.
    Figure 5. Allowed Callback URLs field in auth0
    Allowed Callback URLs field in auth0
  6. Copy the Domain and Client ID from the application details and save it for use in Device Management.
    Figure 6. Client ID field in auth0
    Client ID field in auth0
  7. Return to Tanium Console. From the Main menu, go to Shared Services > Device Management. Click Settings cog and then click IDP Configuration.
  8. 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.
    Figure 7. Client ID field in the Device Management settings
    Client ID field in the Device Management settings

Microsoft Entra ID

For more information about configuring Microsoft Entra ID, see Microsoft Entra Documentation: Single-page application: Code configuration.

  1. From the Entra menu, click Enterprise Applications.
    Figure 8. Enterprise Apps link in Entra ID
    Enterprise Apps link in Entra ID
  2. Click New Application.
    Figure 9. New application link in Entra ID
    New application link in Entra ID
  3. Click Create your own application.
  4. Specify a name for the application.
  5. Select this option: Integrate any other application you don’t find in the gallery.
  6. Click Create.
    Figure 10. Create an application in Entra ID
    Create an application in Entra ID
  7. From the Entra menu, click App registrations.
    Figure 11. App registrations link in Entra ID
    App registrations link in Entra ID
  8. Click the name of the app that you created.
  9. Click Add a Redirect URI.
    Figure 12. Redirect URI link in Entra ID
    Redirect URI link in Entra ID
  10. Confirm that the Supported account types field is set to Accounts in this organizational directory only.
    Figure 13. Accounts in this organizational directory only option in Entra ID
    Accounts in this organizational directory only option in Entra ID
  11. In the Platform configurations section, click Add a platform.
    Figure 14. Add Platform button in Entra ID
    Add Platform button in Entra ID
  12. Click Single-page application.
    Figure 15. Single-page application option in Entra ID
    Single-page application option in Entra ID
  13. In the Redirect URIs section, enter the URI that you copied from the Device Management settings. Click Configure.
    Figure 16. Redirect URIs link in Entra ID
    Redirect URIs link in Entra ID
  14. Click Overview to return to the application details.
    Figure 17. Link to application Overview page in Entra ID
    Link to application Overview page in Entra ID
  15. Copy and save the value for the Application (client) ID.
    Figure 18. Application (client) ID field in Entra ID
    Application (client) ID field in Entra ID
  16. 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.
    Figure 19. OpenID Connect metadata document field on the Endpoints tab in Entra ID
    OpenID Connect metadata document field on the Endpoints tab in Entra ID
  17. Return to Tanium Console. From the Main menu, go to Shared Services > Device Management. Click Settings cog and then click IDP Configuration.
  18. 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.
    Figure 20. IdP configuration settings in Device Management
    IdP configuration settings in Device Management

Okta

For more information about configuring Okta, see Okta documentation: Create OpenID Connect app integrations.

  1. From the Okta Admin Console menu, click Applications > Applications.
    Figure 21. Applications link in Okta
    Applications link in Okta
  2. Click Create App Integration.
    Figure 22. Create App Integration in Okta
    Create App Integration in Okta
  3. For the sign-in method, select OIDC - OpenID Connect, and select Single-Page Application for the application type. Click Next.
    Figure 23. OIDC - OpenID Connect and Single-Page Application options in Okta
    OIDC - OpenID Connect and Single-Page Application options in Okta
  4. Specify a name for the application in the App integration name field.
  5. In the Sign-in redirect URIs field, enter the URI that you copied from the Device Management settings.
    Figure 24. Sign-in redirect URIs field in Okta
    Sign-in redirect URIs field in Okta
  6. In the Controlled access section, select an assignment. Leave the other settings at their default values. Click Save.
  7. On the application page, click the Sign On tab.
    Figure 25. Sign On tab in Okta
    Sign On tab in Okta
  8. Copy the value for Audience.
    Figure 26. Audience field in Okta
    Audience field in Okta
  9. Note the URL for the Okta instance where you configured the application. For example, https://myorg.okta.com.
  10. Return to Tanium Console. From the Main menu, go to Shared Services > Device Management. Click Settings cog and then click IDP Configuration.
  11. Set the Client ID to the Audience value that you copied from Okta, and set the Issuer as the Okta instance URL. Click Apply.
    Figure 27. IdP configuration settings in Device Management
    IdP configuration settings in Device Management

OneLogin

For more information about configuring OneLogin, see OneLogin Docs: OpenID Connect (OIDC) Custom Connector.

  1. From the OneLogin administration menu, click Applications > Applications.
    Figure 28. Applications tab in OneLogin
    Applications tab in OneLogin
  2. Click Add App.
    Figure 29. Add App button in OneLogin
    Add App button in OneLogin
  3. Search for OpenID Connect (OIDC).
    Figure 30. OpenID Connect search in OneLogin
    OpenID Connect search in OneLogin
  4. Click the app to add it.
  5. Specify a Display Name and, optionally, the icons for the app. Click Save.
    Figure 31. Display Name field in OneLogin
    Display Name field in OneLogin
  6. Click the Configuration tab.
    Figure 32. Configuration tab in OneLogin
    Configuration tab in OneLogin
  7. In the Redirect URI's field, enter the URI that you copied from the Device Management settings.
    Figure 33. Redirect URI's field in OneLogin
    Redirect URI's field in OneLogin
  8. On the SSO tab, set the Application Type to Web and the Authentication Method to None (PKCE).
    Figure 34. Application Type and Authentication Method fields on the SSO tab in OneLogin
    Application Type and Authentication Method fields on the SSO tab in OneLogin
  9. Copy and save the Client ID and Issuer URL.
    Figure 35. Client ID and Issuer URL fields in OneLogin
    Client ID and Issuer URL fields in OneLogin
  10. Return to Tanium Console. From the Main menu, go to Shared Services > Device Management. Click Settings cog and then click IDP Configuration.
  11. 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.
    Figure 36. IdP configuration settings in Device Management
    IdP configuration settings in Device Management

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.

  1. In a browser, open {IssuerURL}/.well-known/openid-configuration and note the value of the issuer field in the response.

  2. From the Main menu, go to Shared Services > Device Management. Click Settings cog and then click IDP Configuration.

  3. 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.