Let your staff sign in to the HAIMDALL editor with their Microsoft work account. HAIMDALL uses SAML 2.0, so Entra ID (formerly Azure AD) checks who they are, applying your own sign-in rules such as multi-factor authentication, and tells HAIMDALL. HAIMDALL can also create their account the first time they sign in, and set their role from their Entra groups.
This guide covers single sign-on for the editor. Your public help site never asks readers to sign in.
Before you start
A licence that includes single sign-on. Check System › Licence key: "Single sign-on" must say Included. If it doesn't, ask for an upgraded key.
HAIMDALL is reached over HTTPS, and its public address is set under Customer site › Domain. Entra only accepts
https://addresses: see HTTPS and Reverse Proxy. If you use a separate editor address, single sign-on uses that one.An Entra role that can create enterprise applications: Cloud Application Administrator or Application Administrator.
Single sign-on works with Entra ID Free. You don't need a premium Entra licence for it.
Step 1: Create the application in Entra
Sign in to the Microsoft Entra admin center at entra.microsoft.com.
Go to Entra ID › Enterprise apps › All applications and choose New application.
Choose Create your own application, name it (for example "HAIMDALL"), select Integrate any other application you don't find in the gallery (Non-gallery), then Create.
In the new application, open Users and groups and Add user/group. Add everyone who will use HAIMDALL: only people assigned here can sign in through it. On Entra ID Free you assign people one by one; assigning a whole group needs Entra ID P1 or P2.
Step 2: Give Entra HAIMDALL's addresses
In HAIMDALL, open Access › Single sign-on. Choose Microsoft Entra ID as the provider.
In Entra, open the application's Single sign-on page, choose SAML, then Edit in Basic SAML Configuration.
Copy these values from Step 1 on HAIMDALL's screen:
Identifier (Entity ID): HAIMDALL's identifier. Fixed after you first save in HAIMDALL, so it never needs changing.
Reply URL (Assertion Consumer Service URL): where Entra sends people back to.
Sign on URL: makes the application's tile in Microsoft's My Apps portal open HAIMDALL's sign-in. Recommended, so the tile works.
Save in Entra.
Step 3: Give HAIMDALL Entra's details
In Entra, on the same SAML page, find SAML Certificates and copy the App Federation Metadata Url.
In HAIMDALL, under Step 2, paste it into Metadata URL and choose Load. HAIMDALL reads Entra's identifier, sign-in address and signing certificate from it.
Check the details, then choose Save.
The Attributes section is already set up for Entra: the email address, the display name, and Entra's object ID as the unique ID. The object ID never changes, so a person stays linked to their HAIMDALL account even if their name or email address changes. Leave these as they are unless the test in Step 4 shows a problem.
Step 4: Test sign-in
In HAIMDALL, under Step 3, choose Test sign-in. Use HAIMDALL's button, not the Test button in Entra (see Troubleshooting).
Sign in at Microsoft with an account you assigned to the application.
You return to the Single sign-on screen. Nobody is signed in to HAIMDALL by a test. The result shows the email address, display name and unique ID Entra sent, the groups it sent and the role they'd give, and the names of every attribute it sent.
If the test fails, the reason is shown under the result. See Troubleshooting below.
Step 5: Switch it on
Under Step 4, choose Switch on. It's available only after a successful test of the settings as they are now: if you change Entra's details later, test again.
The sign-in page now shows Sign in with Microsoft. The email and password form moves behind Use a password instead.
Accounts and roles
These settings are in the Accounts and roles section of Access › Single sign-on. Choose Save at the bottom of the section after changing them. They apply to each person the next time they sign in.
Who gets an account
Off (the default): only people who already have an account on Access › People can sign in. HAIMDALL links each one to their Entra identity by email address the first time they sign in.
Create an account the first time someone signs in: anyone you've assigned to the application in Entra gets a HAIMDALL account when they first sign in. The account has no password, uses one of your licence's user seats, and gets the Role for a new account unless one of their groups is mapped (below). When there's no free seat, the person is told so and no account is created.
Either way, each person's display name is updated from Entra every time they sign in.
Roles from Entra groups
Map Entra groups to HAIMDALL roles, so you manage roles in Entra instead of on People:
Someone in a mapped group gets that group's role every time they sign in. In several mapped groups, they get the highest role.
Someone in none of the mapped groups keeps the role they have, so mapping groups never demotes anyone by accident.
The last admin who can sign in is never demoted by a mapping.
To set it up:
In Entra, create the groups you need (Entra ID › Groups › New group, group type Security), for example "HAIMDALL Editors", and add people to them. Copy each group's Object ID from its Overview page.
In the HAIMDALL application in Entra, open Single sign-on › Attributes & Claims › Edit › Add a group claim. Choose Security groups, keep the source attribute Group ID, and Save.
In HAIMDALL, under Roles from groups, choose + Add group, paste the Object ID, choose the role, and Save.
Run Test sign-in as someone in the group. The result lists the groups Entra sent and shows Role from groups.
Entra sends group Object IDs, not group names. If someone is in more than 150 groups, Entra sends a link instead of the list; HAIMDALL then treats them as having no groups, so their role doesn't change.
Who can still use a password?
Each account on Access › People has Allow Logon with Password.
Accounts created before you switched on single sign-on keep it on, so nothing changes for them until you decide.
While single sign-on is on, new accounts are created without a password: they sign in with Microsoft only.
Switch it off for anyone who should only use Microsoft. Their password is erased.
Keep at least one admin who can log on with a password. If Entra is unavailable, or a certificate expires unnoticed, that account is how you get back in. Health Check warns when no admin can log on with a password.
If you're locked out completely, someone with access to the server can run the recovery command from Installing HAIMDALL. It issues a temporary password for that account and switches password logon back on:
docker compose exec app node tools/user-password.cjs you@example.comCertificates
Entra signs every sign-in with a certificate that lasts three years by default. HAIMDALL refuses sign-in with an expired certificate, and helps you change over in time:
New certificates are picked up automatically. Once a day, HAIMDALL reads Entra's metadata URL and adds any new signing certificate. To check straight away, choose Check now under the certificates on Access › Single sign-on.
Reminders. From 30 days before the certificate ends, admins see a reminder at the top of every editor page. System › Health shows each certificate's end date (a warning 60 days before, a failure at 7 days or once it has expired) and whether the daily check is working. Entra also emails the address in SAML Certificates › Notification email 60, 30 and 7 days before.
To change over:
In Entra, create a new certificate (SAML Certificates › Edit › New Certificate) and save it, but don't make it active yet.
Wait for HAIMDALL's daily check, or choose Check now. The new certificate appears under the old one.
In Entra, make the new certificate active, then sign in to HAIMDALL with Microsoft to confirm it works.
Later, you can remove the old certificate from the Signing certificate(s) box in HAIMDALL and Save. Until then, HAIMDALL keeps both.
Troubleshooting
The sign-in page shows people a short message. The technical reason is on Access › Single sign-on under Last refused sign-in.
Microsoft says "AADSTS50105" (the user isn't assigned to the application): assign them in Entra under the application's Users and groups (Step 1).
"The identity provider didn't send the details HAIMDALL needs": usually the person has no email address in Entra, for example new accounts and guest users. Either fill in their Email in Entra (the user's Properties › Contact information), or make Entra send the sign-in name as the email for everyone: in the application's Attributes & Claims, edit the emailaddress claim and change its source attribute from
user.mailtouser.userprincipalname."There's no HAIMDALL account for you": switch on Create an account the first time someone signs in (and Save), or add the person on Access › People with the email address Entra sends (the test shows it).
"Linked to a different single sign-on identity": the HAIMDALL account with that email is already linked to another Entra user. This usually happens when a person was recreated in Entra.
"HAIMDALL's licence has no free user seat": disable an account you no longer need, or upgrade the licence.
"Start from HAIMDALL's sign-in page…": the sign-in was started from Entra (its Test button, or a My Apps tile without a Sign on URL). HAIMDALL only accepts sign-ins it started itself, to stop someone pushing a stolen sign-in into another person's browser. Use HAIMDALL's sign-in page, HAIMDALL's own Test sign-in, or set the Sign on URL in Entra.
A role doesn't change: check the Test sign-in result. If Groups says "none received", the group claim isn't set up (see Roles from Entra groups). If the group is there but Role from groups says none, the Object ID in HAIMDALL doesn't match.
Health Check says the certificate check failed