Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

SAML single sign-on for self-hosted AxonOps with Microsoft Entra ID

This page configures SAML 2.0 single sign-on between Microsoft Entra ID (formerly Azure Active Directory) and a self-hosted AxonOps installation. Entra ID authenticates dashboard users and reports their group memberships in a groups claim; axon-server maps those groups to AxonOps roles through rolesMapping in /etc/axonops/axon-server.yml.

This page covers only the Entra ID side and the Entra ID specific values in axon-server.yml. SAML single sign-on for self-hosted AxonOps is the reference for every axon-server setting, the sign-in flow, role mapping, session behaviour, and recovery; this page links to its sections instead of repeating them.

The configuration proceeds in the following stages:

  1. Create an enterprise application in Entra ID and set its SAML Identifier and Reply URL.
  2. Add a groups claim and download the federation metadata.
  3. Restrict sign-in to assigned groups, assign the groups, and record their identifiers.
  4. Configure the auth section of axon-server.yml, restart axon-server, and verify sign-in.

For AxonOps Cloud, which uses a different Entra ID configuration, see Microsoft Entra ID for AxonOps Cloud.

  • The prerequisites in SAML single sign-on for self-hosted AxonOps are met. In particular, the installation has an AxonOps Enterprise licence, the dashboard is served at a stable HTTPS URL, and axon-server.yml can be edited and axon-server restarted on the AxonOps server host.
  • The service certificate and key have been generated and copied to /etc/axonops, as described in Create the service certificate and key.
  • An Entra ID account with the Cloud Application Administrator or Application Administrator role, or ownership of the application’s service principal, to create the application and configure single sign-on. The User Administrator role is also sufficient to assign users and groups to the application.
  • Microsoft Entra ID P1 or P2, for assigning groups to the application and for token encryption. On other editions, users can be assigned only individually; see Step 5.
  • The org_name value from axon-server.yml and the names of any clusters that need cluster-level roles, both case-sensitive.
  • The Entra ID groups to use for each AxonOps role and scope are decided. Each role key at each scope in rolesMapping maps to exactly one group, so the design commonly uses one group per role per scope, for example a group for global read-only access and a group for admin rights on one production cluster. See Role mapping.

The examples on this page use the dashboard URL https://axonops.example.com/ and the entity ID http://axonops/. Replace both with the values for the installation.

An enterprise application is the object in the Entra ID tenant that represents AxonOps and holds its single sign-on configuration and user assignments.

Open Enterprise applications > All applications in the Microsoft Entra admin center (under Entra ID) or the Azure portal, then select New application.

Enterprise applications page with the New application button highlighted

AxonOps is not listed in the Entra ID application gallery. On the Browse Microsoft Entra Gallery page, select Create your own application.

Browse Microsoft Entra Gallery page with Create your own application highlighted

Enter a name, for example AxonOps, select Integrate any other application you don’t find in the gallery (Non-gallery), then select Create. The name is a label shown to administrators and to users in My Apps; it has no effect on the SAML configuration. All later steps edit this one application. To correct a mistake, edit its settings rather than creating a second application, which would need a different Identifier.

Create your own application panel with the name AxonOps entered and the non-gallery option selected

On the application overview page, under 2. Set up single sign on, select Get started.

Application overview page with the Set up single sign on card highlighted

On the Select a single sign-on method page, select SAML.

Select a single sign-on method page with the SAML tile highlighted

On the SAML-based Sign-on page, select Edit on Basic SAML Configuration.

SAML-based sign-on page with the Edit button on Basic SAML Configuration highlighted

Enter the following values and select Save:

Entra ID fieldValueaxon-server.yml
Identifier (Entity ID)http://axonops/entityId must equal this value. The Identifier must be unique across all applications in the tenant, so each AxonOps installation that uses the same tenant needs its own identifier.
Reply URL (Assertion Consumer Service URL)https://axonops.example.com/saml/acsThe value must equal dashboardUrl followed by saml/acs. See Dashboard URL.
Sign on URLOptional. Leave empty, or set to dashboardUrl followed by saml/login, for example https://axonops.example.com/saml/login.Not read by axon-server. When set, launching the application from My Apps opens this URL, which starts an SP-initiated sign-in.
Relay StateOptional. Leave empty.Not used.
Logout URLLeave empty.Self-hosted AxonOps does not support SAML single logout.

Basic SAML Configuration panel with Identifier http://axonops/, Reply URL https://axonops.example.com/saml/acs, and Sign on URL https://axonops.example.com/saml/login

After saving, confirm that the Basic SAML Configuration card shows the Identifier and Reply URL exactly as entered, including the scheme and the path. A difference in either value is reported only when a user first signs in; see Troubleshooting.

Step 4: Review the default attributes and claims

Section titled “Step 4: Review the default attributes and claims”

The Attributes & Claims card lists the configurable claims that Entra ID places in the assertion. A new non-gallery application has the following claims:

Claim nameSource attribute
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givennameuser.givenname
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surnameuser.surname
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddressuser.mail
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameuser.userprincipalname
Unique User Identifier (Name ID)user.userprincipalname

Attributes and Claims page for a new application showing the Unique User Identifier and the default emailaddress, givenname, name, and surname claims

In addition to the listed claims, Entra ID includes the user’s display name in the assertion as http://schemas.microsoft.com/identity/claims/displayname, although the claim does not appear on the Attributes & Claims page. The configuration in Step 9 uses it for nameAttribute.

Entra ID sends each claim with its full URI as the attribute Name and no FriendlyName, so axon-server.yml refers to the claims by their full URIs. See Attribute names.

No change to the default claims is required. user.mail is empty for accounts without a mailbox, in which case Entra ID omits the emailaddress claim. A missing attribute does not cause a sign-in failure: when a configured attribute is absent from the assertion, axon-server uses the assertion’s Name ID, by default the user principal name, for that field. See User identity attributes.

axon-server assigns roles only from the groups attribute, so the application must emit a groups claim. On the Attributes & Claims page, select Add a group claim.

Group Claims panel with Groups assigned to the application selected, Source attribute set to Group ID, and the Emit group name for cloud-only groups checkbox

The Group Claims panel offers the following options:

OptionEmitsUse with AxonOps
Security groupsAll security groups the user is a member of.Usable, subject to the group limit below.
Directory rolesThe user’s directory roles, as a wids claim. No groups claim is emitted.Do not use. axon-server receives no groups.
All groupsSecurity groups, distribution lists, and roles.Usable, subject to the group limit below.
Groups assigned to the applicationOnly the groups assigned to the application of which the user is a direct member.Recommended.

Select Groups assigned to the application. Microsoft recommends this option for large organisations because of the limit on the number of groups in a token: a SAML assertion carries at most 150 groups, counting nested memberships for the options that include them. When a user exceeds the limit, Entra ID replaces the groups claim with a link claim, http://schemas.microsoft.com/claims/groups.link. axon-server does not follow the link, so the user signs in with no roles. With Groups assigned to the application, the claim contains only the groups assigned to AxonOps, and the limit does not apply to users who are members of 1,000 or fewer groups. These limits are set by Microsoft and documented in Configure group claims for applications.

Two constraints apply to Groups assigned to the application:

  • Group-based assignment requires Microsoft Entra ID P1 or P2.
  • Nested memberships are not included. A user must be a direct member of an assigned group for that group to appear in the claim.

Without Entra ID P1 or P2, groups cannot be assigned to the application. In that case, assign users individually in Step 8 and select Security groups or All groups here. These options emit every qualifying group of the user, including nested memberships, and are subject to the 150-group limit.

The Source attribute determines the value that represents each group in the claim, and therefore the values written in rolesMapping:

Source attributeValue in the claimAvailability
Group IDThe group’s object ID, a GUID such as e8d738b7-cb53-453a-b968-b38125f48ab5.All groups.
Group ID, with Emit group name for cloud-only groups selectedThe display name for groups created in Entra ID; the object ID for other groups.Only with Groups assigned to the application.
sAMAccountName, NetbiosDomain\sAMAccountName, DNSDomain\sAMAccountName, On Premises Group Security IdentifierThe on-premises name or SID in the selected format.Only for groups synchronised from on-premises Active Directory with Microsoft Entra Connect.

Object IDs and names trade stability against readability. An object ID never changes, so renaming a group has no effect on AxonOps, but rolesMapping then consists of GUIDs that must be looked up to be understood. A group name makes rolesMapping readable, but renaming the group in Entra ID breaks the mapping until axon-server.yml is updated and axon-server restarted. Where names are available (cloud-only groups assigned to the application, or synchronised groups), either choice is valid; the examples on this page use Group ID.

Under Advanced options, leave Customize the name of the group claim cleared. The claim is then named http://schemas.microsoft.com/ws/2008/06/identity/claims/groups, which is the value used for groupsAttribute in Step 9. If the name is customised, groupsAttribute must be set to the resulting claim name instead. Entra ID sends each group as a separate attribute value, as axon-server requires.

Select Save. Confirm that the groups claim now appears in the claims list.

Attributes and Claims page listing the groups claim with value user.groups [ApplicationGroup] above the default claims

Return to the SAML-based Sign-on page. The SAML Certificates card shows the token signing certificate that Entra ID uses to sign assertions.

SAML-based Sign-on page showing the Basic SAML Configuration, Attributes and Claims, and SAML Certificates cards, with the Federation Metadata XML download link highlighted

  • Select Download next to Federation Metadata XML. The file contains the Entra ID entity ID, the sign-in endpoint, and the token signing certificate. It is copied to the axon-server host in Step 9.
  • The App Federation Metadata Url serves the same metadata and can be used as idpMetadataUrl. A downloaded file is recommended, because with idpMetadataUrl axon-server cannot start when the URL is unreachable. See IdP metadata from a URL.
  • Leave the signing settings at their defaults: Sign SAML assertion with the SHA-256 algorithm. axon-server accepts a signed assertion or a signed response.

Entra ID creates the token signing certificate as a self-signed certificate valid for three years. Entra ID sends expiry notification emails 60, 30, and 7 days before the certificate expires, to up to five addresses listed under Notification Email. Add an address that the team responsible for AxonOps monitors. When the certificate is renewed and the new certificate made active, download the metadata again and follow IdP signing certificate; until axon-server is restarted with the new metadata, no user can sign in.

By default, every user in the tenant can obtain an assertion for a new application. Complete this step before enabling SAML in axon-server in Step 10, so that sign-in to AxonOps is never open to the whole tenant. Open the application’s Properties page, set Assignment required? to Yes, and select Save. Confirm that the page shows Yes after saving.

Enterprise application Properties page with Assignment required set to Yes

Assignment requiredEffect
Yes (recommended)Only users assigned to the application, directly or through an assigned group, can sign in. Other users receive error AADSTS50105 at the Microsoft sign-in page.
NoEvery user in the tenant can sign in to AxonOps. A user who belongs to no mapped group completes sign-in but has no access to any cluster.

Users with the Global Administrator role can sign in regardless of this setting.

Step 8: Assign groups and record their object IDs

Section titled “Step 8: Assign groups and record their object IDs”

Open the application’s Users and groups page, select Add user/group, select the groups decided in the prerequisites, and select Assign. Confirm that each group appears in the list.

Users and groups page of the AxonOps enterprise application listing the AxonOps Admins, BackupAdmins, ReadOnly, and SuperUsers groups

Users must be direct members of an assigned group. Assignment does not cascade to nested groups, so a user who is a member only of a group nested inside an assigned group is not assigned, and with Assignment required? set to Yes that user cannot sign in.

Without Entra ID P1 or P2, only individual users can be assigned. Assign each user, and use the group claim options described in Step 5.

With Group ID as the source attribute, rolesMapping requires the object ID of each group. For each group, open Groups > All groups in the Microsoft Entra admin center, select the group, and copy Object ID from its Overview page.

Overview page of the AxonOps SuperUsers group with the Object ID field highlighted

Record each group against the scope and role key it grants. Scope keys take the forms described in Scopes, where my-company stands for the org_name value in axon-server.yml and prod for a cluster name as shown in AxonOps. For example:

Entra ID groupObject IDScopeRole key
AxonOps SuperUserse8d738b7-cb53-453a-b968-b38125f48ab5_global_superUserRole
AxonOps Admins77b7ba86-5df4-4a46-919b-c8e0f7b06d5c_global_adminRole
AxonOps BackupAdminsfd7f9cb2-7a90-408e-912e-b87134b4b11b_global_backupAdminRole
AxonOps ReadOnly2859b1e8-dd53-4849-bd51-f0e709cc3f5a_global_readOnlyRole
Cassandra prod admins7e1b1cb2-7f6d-4ee0-9959-6bf44af3d930my-company/cassandra/prodadminRole
Cassandra prod read-only8c403815-de52-485b-a439-d16337467e69my-company/cassandra/prodreadOnlyRole

Copy the Federation Metadata XML file downloaded in Step 6 to /etc/axonops/saml_idp_metadata.xml, with the ownership and permissions shown in Download the IdP metadata. When the browser used for the Entra admin center runs on a different machine from axon-server, transfer the file to the axon-server host first, for example with scp. Take a backup of axon-server.yml as described in The auth configuration.

Add the auth section to /etc/axonops/axon-server.yml. The file must contain a single auth section: when one already exists, replace it rather than adding a second. The following example uses the values from the previous steps:

auth:
enabled: true
type: "SAML"
settings:
idpMetadataFile: saml_idp_metadata.xml
entityId: http://axonops/
serviceCertificate: axonops-saml.crt
serviceKey: axonops-saml.key
dashboardUrl: https://axonops.example.com/
nameAttribute: http://schemas.microsoft.com/identity/claims/displayname
idAttribute: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
emailAttribute: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
groupsAttribute: http://schemas.microsoft.com/ws/2008/06/identity/claims/groups
rolesMapping:
_global_:
superUserRole: e8d738b7-cb53-453a-b968-b38125f48ab5
adminRole: 77b7ba86-5df4-4a46-919b-c8e0f7b06d5c
backupAdminRole: fd7f9cb2-7a90-408e-912e-b87134b4b11b
readOnlyRole: 2859b1e8-dd53-4849-bd51-f0e709cc3f5a
my-company/cassandra/prod:
superUserRole: ""
adminRole: 7e1b1cb2-7f6d-4ee0-9959-6bf44af3d930
backupAdminRole: ""
readOnlyRole: 8c403815-de52-485b-a439-d16337467e69

The values that must agree with Entra ID are:

  • entityId equals the Identifier (Entity ID) from Step 3.
  • dashboardUrl followed by saml/acs equals the Reply URL from Step 3, and dashboardUrl ends with /.
  • groupsAttribute equals the name of the groups claim from Step 5.
  • Each rolesMapping value equals a group identifier exactly as Entra ID emits it. Object IDs are lowercase GUIDs.

In the example, my-company must match org_name in axon-server.yml (set during licence setup), and prod is the name of a Cassandra cluster as shown in AxonOps. Roles not granted at a scope are set to ""; every scope must define all four role keys. When the groups claim emits cloud-only group display names or on-premises names instead of object IDs, the rolesMapping values are those names, matched exactly and case-sensitively.

Every field is described in the configuration reference, and scopes and role keys in Role mapping.

Read Recovery from a broken configuration before restarting, and keep a shell session open on the axon-server host. Then restart axon-server and carry out the checks in Apply and verify: the service is running, and the SP metadata at https://axonops.example.com/saml/metadata shows the configured entity ID and ACS URL.

Then verify sign-in with Entra ID:

  1. Open https://axonops.example.com/ in a private browser window. axon-dash redirects the browser straight to the Microsoft sign-in page; there is no AxonOps login page.
  2. Sign in as a test user who is a direct member of one assigned group. Confirm that the browser returns to the AxonOps dashboard and that the access level matches the mapping, for example that a user in the read-only group cannot change settings. Repeat for a user in each mapped group.
  3. Sign in as a user who is not assigned to the application. With Assignment required? set to Yes, the Microsoft sign-in page shows AADSTS50105.
  4. Unless Require verification certificates is enabled (see Request signature verification), test sign-in from My Apps: sign in there as an assigned user and select the AxonOps application. The browser should arrive at the AxonOps dashboard already signed in. With Sign on URL set, this launch starts an SP-initiated sign-in; with it empty, it is an IdP-initiated sign-in.

Group membership changes in Entra ID take effect in AxonOps at the user’s next sign-in, at most about one hour later; see Sessions.

Optional: request signature verification and token encryption

Section titled “Optional: request signature verification and token encryption”

Neither option is required. Both should be enabled, if at all, only after sign-in has been verified in Step 10 without them, so that a failure can be attributed to the option just enabled.

axon-server signs every AuthnRequest with RSA-SHA256 by default. Unless Require verification certificates is enabled, Entra ID does not validate the signature, and no configuration is needed.

To have Entra ID validate AuthnRequest signatures, open SAML Certificates > Verification certificates > Edit, select Require verification certificates, upload the public certificate file axonops-saml.crt, and select Save. By default, Entra ID validates only RSA-SHA256 signatures (a separate opt-in setting accepts RSA-SHA1), so requestSigningAlgorithm should remain at its default.

This option has a functional cost. With Require verification certificates enabled, Entra ID accepts only sign-ins that start with a signed AuthnRequest from axon-server. An IdP-initiated sign-in has no AuthnRequest to validate, so it no longer works. Microsoft lists the single sign-on test feature in the portal, My Apps, and the Microsoft 365 app launcher as affected. Users must start sign-in at dashboardUrl.

Token encryption is a Microsoft Entra ID P1 or P2 feature. Entra ID encrypts the assertion with the AxonOps service certificate, and axon-server decrypts it with serviceKey. Encryption has two operational costs: replacing the AxonOps service certificate must then be coordinated with Entra ID (see below), and a browser SAML tracer shows only ciphertext, so claim names and values can no longer be inspected that way when troubleshooting.

In the enterprise application, open Token encryption, select Import Certificate, and upload the public certificate file axonops-saml.crt. Microsoft documents the import for a file with the .cer extension; if the dialog does not accept .crt, copy the file to axonops-saml.cer and upload the copy. The file contains only the public certificate, never the private key. After the import, select … next to the certificate thumbprint, select Activate token encryption, and select Yes to confirm.

When token encryption or request signature verification is enabled, replacing the AxonOps service certificate also requires replacing the certificate held by Entra ID. See Service certificate for the order of steps and the sign-in outage between them.

  • A SAML assertion carries at most 150 groups. Above the limit, Entra ID replaces the groups claim with a groups.link claim, which axon-server does not follow, and the user receives no roles. Groups assigned to the application avoids the limit for users who are members of 1,000 or fewer groups.
  • Nested group memberships are not supported for application assignment and are not included in the Groups assigned to the application claim.
  • Assigning groups to the application requires Microsoft Entra ID P1 or P2. So does token encryption.
  • The Entra ID token signing certificate is valid for three years. Its renewal requires new metadata on the axon-server host and a restart; see IdP signing certificate.
  • With Require verification certificates enabled, IdP-initiated sign-in does not work.

Errors that Entra ID detects are shown on the Microsoft sign-in page with an AADSTS code, and are recorded in the Sign-in logs in the Microsoft Entra admin center. Errors that axon-server detects appear as an HTTP 403 page in the browser and in journalctl -u axon-server, as described in the generic Troubleshooting section.

SymptomCauseResolution
Microsoft sign-in page shows AADSTS50105The user is not assigned to the application, directly or through an assigned group, and Assignment required? is Yes. A user who is only a member of a nested group is not assigned.Assign the user or one of the user’s groups (Step 8); add nested-group users directly to an assigned group.
Microsoft sign-in page shows AADSTS50011The ACS URL in the AuthnRequest does not match the Reply URL configured in Entra ID.Set the Reply URL to dashboardUrl followed by saml/acs, exactly, and confirm dashboardUrl ends with /.
Microsoft sign-in page shows AADSTS700016No application in the tenant has an Identifier equal to entityId in axon-server.yml.Set entityId to the Identifier (Entity ID) from Step 3, or correct the Identifier, then restart axon-server.
Sign-in succeeds but the user has no accessrolesMapping holds group names while Entra ID emits object IDs, or the reverse.Compare the groups claim values in a captured SAML response with rolesMapping; see Which group identifier to emit.
Sign-in succeeds but the user has no accessThe user is a member of more than 150 groups and the assertion contains a groups.link claim instead of the groups claim.Change the group claim to Groups assigned to the application (Step 5).
Sign-in succeeds but the user has no accessThe user reaches a mapped group only through nesting, which Groups assigned to the application does not emit; or the group is not assigned to the application.Make the user a direct member of the assigned group, and confirm the group is listed on Users and groups.
Sign-in succeeds but the user has no accessThe groups claim name was customised, or Directory roles was selected, so no attribute matches groupsAttribute.Use the default claim name and a groups option from Step 5.
Sign-in from My Apps, the Microsoft 365 app launcher, or the portal test feature fails; sign-in from dashboardUrl worksRequire verification certificates is enabled, which prevents IdP-initiated sign-in.Start sign-in at dashboardUrl, or disable Require verification certificates.
Sign-in from dashboardUrl fails at Entra ID after the AxonOps service certificate was replacedRequire verification certificates is enabled and Entra ID still holds the old certificate.Upload the new axonops-saml.crt as a verification certificate. See Service certificate.
HTTP 403 for every user after signing in at MicrosoftEntra ID activated a new token signing certificate and axon-server still holds the old metadata; or token encryption uses a certificate that does not match serviceKey.Download the Federation Metadata XML again, replace the file, and restart axon-server (IdP signing certificate); import the current axonops-saml.crt for token encryption.

For errors reported by axon-server itself, including startup failures, audience and destination mismatches, and clock skew, see Troubleshooting. To inspect the claim names and values Entra ID sends, capture a SAML response with a browser SAML tracer extension. With token encryption active, the captured assertion is encrypted; deactivate token encryption temporarily to inspect it.