Configure OAuth 2.0 Authentication for Cantara with Microsoft Entra ID

Purpose

Guide administrators through configuring Microsoft Entra ID as an OAuth 2.0 Identity Provider (IdP) to enable Single Sign-On (SSO) for Cantara, and optionally configuring SCIM provisioning for automatic user and group synchronisation. This guide covers the following three steps:

  • Step 1: Register an Application in Microsoft Entra ID — Register an application that allows Cantara to authenticate users via OAuth 2.0.

  • Step 2: Configure OAuth 2.0 in Cantara — Enter your Entra ID credentials into Cantara and activate the identity provider.

  • Step 3 (Optional): Configure SCIM User Provisioning — Register an enterprise application in Microsoft Entra ID and configure automatic user and group provisioning into Cantara.

Note: Both Step 1 and Step 3 require registering an application in Microsoft Entra ID, but they serve different purposes and use different registration types.

Before you begin
  • You have admin access to Microsoft Entra ID.

  • You have admin access to the Cantara Administration Console.

Step 1: Application Registration in Microsoft Entra ID

Purpose

To register the Cantara application in Microsoft Entra ID, which allows Cantara to connect with Entra ID for user authentication. This process will generate necessary credentials, such as the Client ID and Client Secret, which are essential for configuring OAuth 2.0 in Cantara.

Register a New Application

  1. In the Microsoft Entra admin center, navigate to App registrations.

  2. Click + New registration.

SSO-1.png
  1. On the Register an application page, enter the following details:

Field

What to Enter

Name

User-facing display name for this application (this can be changed later).

Supported account types

Choose according to your environment.

Redirect URI

Copy and paste the following URI provided by Cantara:

https://console.cantara.cloud/oauth

  1. Click Register to create the application.

SSO-3.png






OAuth2 Microsoft Entra.png


Generate the Client Secret

  1. Navigate to Certificates & secrets.

SSO-4.png
  1. Click + New client secret.

  2. Enter the following details:

Field

What to Enter

Description

Any descriptive label

Expires

Select appropriate expiration

  1. Click Add

IMPORTANT: The client secret is displayed only once upon creation. Copy and store it securely. If it is lost, a new client secret must be generated.

SSO-6.png

Result:

The application is registered in Microsoft Entra ID, and the required OAuth 2.0 credentials (Client ID and Client Secret) are generated for use in Cantara.


Optional: Restrict Access to Assigned Users and Groups

By default, users in your Microsoft Entra ID can authenticate once the application is configured. To restrict access, you can assign specific users or groups.

To assign users or groups:

Groups 1.png
  1. In Microsoft Entra admin center, navigate to App registrations.

  2. Select your registered application.

Groups 2.png
  1. Navigate to Users and groups.

  2. Click + Add user/group.

Groups 3.png
  1. Select the users or group and click Select.

Groups 4.png
  1. Click Assign.

Group Last.png

Result:

Only assigned users and group members will be able to log in to Cantara.

Step 2: Configure OAuth 2.0 in Cantara

Purpose

To configure OAuth 2.0 in Cantara, enabling authentication via Microsoft Entra ID.

Procedure

  1. In Cantara, navigate to Identity Providers.

OAuth2 + id prov.png
  1. Click + Add Identity Provider.

idp 2.png
  1. Select OAuth2 as the Identity Provider Type.

IDP 3.png
  1. Enter a name and description for your identity provider.

  2. Enter the OAuth 2.0 configuration details.

Note: Some fields in this table are optional and dependent on your Identity Provider (IdP) configuration. Where a field states "Configure based on your IdP", see your IdP settings to determine the correct value.

Required OAuth 2.0 fields

Use this table to cross-check the fields that are typically required for the Microsoft Entra ID OAuth 2.0 configuration.

Field

Value / Setting

Authentication Method

Select the method that matches your IdP configuration. Defaults to client_secret_post.

Client ID

Copy the Application (client) ID from Microsoft Entra.

Client Secret

Copy the client secret created previously.

Authentication URL

Copy from Entra ID Application → Overview → Endpoints.

Access Token URL

Copy from Entra ID Application → Overview → Endpoints.

Redirect URL

https://console.cantara.cloud/oauth

JSON Web Key Set URL

Obtain the JWKS endpoint from Microsoft Entra ID.

Username Attribute

preferred_username or email

Additional OAuth 2.0 fields

The following fields are supported by Cantara and may be required depending on your Identity Provider (IdP) configuration. Refer to your IdP settings to determine which fields apply to your setup.

Field

Value / Setting

Issuer URI

The issuer URI for the OAuth 2.0 provider.

User Info URL

The URL used to retrieve user information from the provider.

Secure JWKS URL

Enables the secure URL for the provider's JSON Web Key Set.

Logout URL

The URL used to log users out of the provider.

Resource

The resource identifier requested from the provider.

Audience

The intended audience for issued tokens.

Display Name Attribute

The attribute used to populate the user's display name in Cantara.

Authorisation Grant Type

The OAuth 2.0 authorisation grant type used by the provider.

Scopes (spaces or comma separated)

The scopes requested from the provider, separated by spaces or commas.

Provider Display Name

The display name shown for this identity provider.

PKCE Enabled

Enables Proof Key for Code Exchange (PKCE) for additional security.

Enable Refresh Tokens
If refresh tokens are required for your authentication flow, enable the Refresh Token setting in your IdP application configuration.

Save ID Prov.png
  1. Click Save Identity Provider.

IDP success.png

A confirmation dialog appears: “Identity Provider saved”.

  1. Click Activate.

confirmation.png

A confirmation dialog appears:

“Are you sure you want to activate the selected identity provider? Incorrect configuration may prevent administration console access.”

  1. Click Yes to confirm the activation.

Once active, users can log in authenticated by Microsoft Entra ID.

First-Time User Prompt

Users may be prompted to consent to sharing basic profile information during their first login.

In some Identity Providers, administrators can grant consent on behalf of users. This behaviour varies depending on configuration.


Outcome

Once configured and activated, users can log in to the Cantara Administration Console using Single Sign-On (SSO). Cantara authenticates users via Microsoft Entra ID using OAuth 2.0.


(Optional) Step 3: Configure SCIM User Provisioning

Purpose

To configure SCIM provisioning using Microsoft Entra ID, enabling automatic synchronisation of user accounts and group memberships into Cantara.

Register an Enterprise Application in Microsoft Entra ID

  1. Log in to the Microsoft Entra Admin Center.

  2. Navigate to Enterprise applications.

  3. Click + New Application.

  4. In the pane that opens, enter a suitable name for your provisioning.

  5. Select the option "Integrate any other application you don't find in the gallery (Non-gallery)".

  6. Click Create.

Configure Application

  1. In the application’s overview, click Provisioning in the left menu.

  2. Click + New configuration.

Enter the following details:

Field

Action/Value

Notes

Authentication Method

Select Bearer Authentication

Required for SCIM provisioning

Tenant URL

https://cip7.cantara.cloud/scim/v2/<TenantID>

The last part of the URL is your Tenant ID.

Token/Secret

Enter the SCIM provisioning token.

To generate the token, in Cantara go to your tenant, and generate a new token. For detailed instructions, see Generate a Provisioning Token.

  1. Click Test Connection to verify the URL and token.

If successful, a dialog box will appear indicating that the Provisioning test connection was successful.

  1. Click Create to finalise the configuration.

Provisioning is now successfully configured, but users have not been provisioned yet. You must decide which users will be pushed into Cantara.

Assign a Group

  1. Navigate to Users and groups.

  2. Click + Add user/group.

  3. Find and select the users or groups that you want to assign. Click Select.

  4. Click Assign to assign the group for provisioning.

Verify Group and User Attribute Mappings

  1. Navigate to Provisioning.

  2. Select Attribute Mappings.

  3. Ensure that Provision Microsoft Entra ID Groups is enabled.

By default, security groups will be automatically moved over, so no changes are needed to the default group mapping.

  1. Click Provision Microsoft Entra ID Users to open the Attribute Mapping page.

  2. Remove any fields that are not required for user authentication.

Only the following core attributes are required:

Attribute

Required

userName

Yes

active

Yes

displayName

Yes

emails[type eq "work"].value

Yes

name.givenName

Yes

name.familyName

Yes

name.formatted

Yes

phoneNumbers[type eq "mobile"].value

Yes

externalID

Optional

SCIM Workflow.png



Note: Remove any unnecessary fields this reduces latency when provisioning.

  1. Once you have finished reviewing and editing the mapping, click Save.

Configure Settings and Email Notifications

  1. On the Provisioning screen, under Settings, check the ‘Send an email notification when a failure occurs’ checkbox.

  2. Enter a notification email address.

  3. Under Scope, select ‘Sync only assigned users and groups’.

  4. Set Provisioning Status toggle to On.

  5. Click Save.

This will enable the provisioning process and allow Cantara to begin syncing users and groups based on your settings.

Start SCIM Provisioning

On the Overview (Preview) page, click Start Provisioning to initiate the process.

The system will begin syncing users and groups from Microsoft Entra ID to Cantara based on the configurations you have set.

Verify Group in Cantara

After provisioning starts, in Cantara navigate to Security Groups.

  • The added security group will be listed with the members of that group successfully provisioned.

  • If any errors occur or if the group does not appear as expected, double-check the mappings and group assignments.


What to Expect

Once SCIM provisioning is enabled, accounts provisioned from Microsoft Entra ID will appear in Cantara with the following behaviour:

  • Account Source — displays as SCIM (rather than Local).

  • Account fields — Read-only in Cantara. Changes must be made in the Identity Provider.

  • User updates — Changes made in Microsoft Entra ID (e.g., name, email, phone) are automatically synced to Cantara.

  • Deactivation — When a user is deactivated or removed in Microsoft Entra ID, the account is automatically deactivated in Cantara.

  • Groups — Group memberships configured in Microsoft Entra ID are synced and reflected in Cantara Security Groups.


What’s next?

  • With user access and provisioning set up, the next step is to understand how to assign Security Topics, see Setting Up User Permissions.