Skip to main content
Azure AD can be configured from Admin Settings or with Admin Server environment variables. Azure AD OAuth has two parts:
  • An Azure app registration in Microsoft Entra ID.
  • FalkorDB Enterprise OAuth settings, stored in Admin Settings and Kubernetes Secrets.

Prerequisites

  • FalkorDB Enterprise is installed and the Admin UI is reachable.
  • You can sign in as an admin with the settings.update permission.
  • You know the public URL users use to reach the Admin UI, for example https://admin.example.com.
  • You can create or update an app registration in Microsoft Entra ID.
  • For group-based role mapping, you can grant Microsoft Graph application permissions and admin consent.

Create the Azure app registration

  1. Open the Microsoft Entra admin center.
  2. Go to Identity > Applications > App registrations.
  3. Select New registration.
  4. Enter a name, for example FalkorDB Enterprise Admin.
  5. Choose the supported account type for your organization.
  6. Under Redirect URI, choose Web and add:
Replace https://admin.example.com with the public Admin UI origin for your installation.
  1. Save the app registration.
  2. Copy the Application (client) ID and Directory (tenant) ID.
  3. Open Certificates & secrets and create a new client secret.
  4. Copy the client secret value immediately. Azure shows it only once.

Configure API permissions

For basic login, the app needs delegated Microsoft Graph permissions: For group-based role mapping, add Microsoft Graph application permissions and grant admin consent: After adding permissions, select Grant admin consent for the tenant.

Configure Azure AD in the Admin UI

  1. Sign in to the Admin UI as an admin.
  2. Open System Settings.
  3. Open OAuth / SSO.
  4. Expand the Azure AD provider card.
  5. Fill in the Azure OAuth fields:
  1. Configure sign-in policy fields as needed:
  1. Select Save Settings.
The Admin Server stores client_id, tenant_id, redirect_uri, and client_secret_secret_ref in Admin Settings. The client secret itself is written to the referenced Kubernetes Secret under the client_secret key.

Configure with the API

You can also configure Azure AD OAuth through the settings API. Authenticate as an admin first, then send a PATCH request to /api/settings/.

Configure with Kubernetes Secrets and ConfigMap

Create the OAuth client secret:
Then patch Admin Settings with the public Azure metadata:
Prefer the Admin UI or settings API when possible; they preserve existing settings and avoid replacing the full settings.json document by hand.

Configure with environment variables

Azure AD OAuth can also be configured with Admin Server environment variables. This is useful for local development or simple deployments:
Settings configured in the Admin UI are preferred for Azure AD OAuth at request time. Environment variables remain a fallback when settings-backed Azure AD OAuth is not configured.

Configure with Helm

For Helm-based deployments, set the Azure values on install or upgrade:

Test the login flow

Start the OAuth flow from a browser:
Do not start from the raw Microsoft authorization URL during manual testing. The FalkorDB Enterprise OAuth endpoint sets the CSRF state cookie required by the callback. After a successful login, the Admin UI should show a Continue with Azure AD button whenever Azure AD is configured and OAuth login is enabled.

Rotate the client secret

To rotate the Azure client secret:
  1. Create a new client secret in the Azure app registration.
  2. Open System Settings > OAuth / SSO.
  3. Expand Azure AD.
  4. Keep the same Secret reference or enter a new Secret name.
  5. Paste the new value in Azure Client Secret.
  6. Select Save Settings.

Troubleshooting