Connecting an Identity Provider¶
Whiskers offers three ways to sign in: built-in username + password (with MFA), corporate single sign-on via OIDC (Microsoft Entra ID, Okta, Keycloak, Google Workspace and any provider that follows the OIDC standard), and LDAP / Active Directory (directory login plus user/group sync). This page explains how to set up OIDC and LDAP.
Identity providers live under Identity → IdP Providers in the admin
panel; defining one requires identity:idp:write, connection tests and sync
require identity:idp:test (both included in the tenant administrator
role). Creating, changing and deleting a provider additionally require the
tenant administrator role itself: granting the permission to a custom role is
not enough. Whoever can change the identity provider can point sign-in at their
own server and log in as any user, administrators included, so this power
cannot be delegated. The connection is verified live when saved: for OIDC the discovery
document is fetched, for LDAP a bind is made with the service account; an
unreachable server rejects the registration.
Addresses that are not accepted
The issuer and the LDAP server address are checked when saved and on every
connection. The platform's own services, localhost and the cloud
metadata address can never be targets (the registration is rejected with
422); internal network addresses are allowed.
How users are matched¶
Whichever way they arrive, users are recognised by their e-mail address: one e-mail is one user record. The rules that follow:
- An account created via the built-in path is linked to the same account when the same e-mail signs in through OIDC. This is how you start with a built-in administrator and move to SSO later.
- An SSO login by a user with a pending invitation (no password set yet) counts as accepting the invitation.
- A disabled user cannot sign in even if their provider account is active.
- If the OIDC provider says the e-mail is unverified (
email_verifiedclaim isfalse) the login is rejected; details below. - On first login the user is created automatically and has no role. Because access roles come from groups, pick at least one group in the provider's New user groups field; otherwise the user can sign in but sees no agents.
OIDC (Entra ID, Okta, Keycloak, Google)¶
1. Register an application at the provider¶
Create an OIDC client (application registration) at your provider. Use the Whiskers login callback as the redirect address:
https://<your-whiskers-host>/api/v1/auth/oidc/callback
Collect the three values the provider gives you: the issuer address, the client ID and the client secret.
Microsoft Entra ID
Entra admin center → App registrations → New registration; account type this organizational directory only. Build the issuer from the Directory (tenant) ID on the overview page:
https://login.microsoftonline.com/<directory-id>/v2.0
Additional settings:
- For group mapping use Token configuration → Add groups claim (security groups). The token then carries group object IDs.
- Entra does not send the
email_verifiedclaim; its counterpart is the optional claimxms_edov. See "E-mail verification" below. - Accounts without a mailbox also lack the
emailclaim; usepreferred_username(UPN) as the e-mail field (claim mapping).
2. Register in Whiskers¶
Identity → IdP Providers → New IdP, type OIDC (Generic):
| Field | Description |
|---|---|
| Issuer | The provider's issuer address; the discovery document is fetched from <issuer>/.well-known/openid-configuration |
| Client ID / Client secret | From the application registration; the secret is stored encrypted and never shown again |
| Redirect URI | Exactly the callback address you entered at the provider |
| Scopes | Empty means openid profile email |
| New user groups | Local groups assigned on first login — access roles come from here |
| Re-authentication (prompt) | login: the user is asked again on every sign-in even if a provider session exists |
| Max. authentication age (s) | If the provider session is older than this, re-authentication is required |
| Also end the IdP session on logout | Logging out of Whiskers also ends the provider session; a return address is given separately |
| Customize claim mapping | Enable if the provider's claim names differ from the standard; five fields appear (identity, e-mail, display name, groups, e-mail verification) |
| Sign-in only with an e-mail verified by the IdP | See below; leave it off for Entra |
Save with Create and verify. The provider appears as a button on the login page.
E-mail verification¶
Because the e-mail address is the key that identifies a user, it matters that the provider has verified it. There are two layers:
- Always: if the provider sends
email_verified: false, the login is rejected. - If Sign-in only with an e-mail verified by the IdP is enabled, a login
without the claim is rejected as well. Enable this only for providers known
to send the claim (Google, Okta, Keycloak). Entra ID does not send it;
there, enable claim mapping and put
xms_edovinto the e-mail verification field so the same protection works with Entra.
Group mapping¶
The groups claim in the token adds memberships to groups whose external ID equals the claim value. Today only groups created by LDAP sync carry an external ID; a local group created in the panel cannot be given one. For an OIDC-only organization the practical path is the New user groups field.
LDAP / Active Directory¶
There are three variants: LDAP — Active Directory, OpenLDAP, FreeIPA. They differ only in default attribute mapping and filters; an empty filter is filled with the variant's default.
| Field | Description |
|---|---|
| Server URI | ldaps://dc.company.local:636 (ldaps or TLS enabled in production) |
| Bind DN / Bind password | Service account that reads the directory; the password is stored encrypted |
| User base DN / Group base DN | Root of user and group searches |
| User filter / Group filter | Empty means the variant default; in AD the default filter excludes disabled accounts |
| Username / Email / Display name attribute | Which attribute each user field is read from (e.g. uid · mail · cn); empty means the variant default |
| Group name / Group member attribute | Which attributes hold a group's name and members (e.g. cn · member; uniqueMember in directories using groupOfUniqueNames); empty means the variant default |
| TLS | Encrypts an ldap:// address with StartTLS; if the server does not support it, the connection fails. An ldaps:// address is already encrypted |
| Verify certificate | On in production; can be turned off for a test server with a self-signed certificate |
| Deactivate users missing from the directory | A user not found during sync is disabled (see below) |
| Max. deactivation ratio per run | Default 20%; if exceeded, nobody is deactivated |
| Max. group removal ratio per run | Default 20%; if exceeded, no group is removed and your approval is awaited (see below) |
| Default groups for new users | A user created by sync or by their first login is added to these local groups (e.g. the group carrying the default role). Applied only at creation; add existing users to the group manually, and sync does not re-add someone you removed |
| Directory account lockout threshold | After how many wrong passwords your directory locks an account (see below) |
| Directory counter reset time (min) | How long the directory keeps its wrong-password counter; default 30 |
Directories that differ from the defaults¶
Defaults: OpenLDAP looks for groups of class groupOfNames, with the name in
cn and members in member; Active Directory uses class group. If your
directory stores groups differently (e.g. groupOfUniqueNames + uniqueMember,
group name in ou), enter the Group filter and the Group name / Group
member attributes — otherwise groups arrive without names and members. These
fields can also be edited later on the provider's detail page; the bind
password is not asked again.
Login¶
The LDAP tab on the login page asks for username + password; with several LDAP providers they are listed in priority order. Whiskers looks the user up with the service account and then binds with the user's own password. A user unknown to Whiskers is created on first login.
Tell Whiskers about your directory's account lockout
Every wrong password typed on the Whiskers login page reaches your directory as a real sign-in attempt and is counted by the directory itself. If your directory locks accounts after a number of wrong passwords (lockoutThreshold in Active Directory), someone could use the Whiskers login page to lock an employee's corporate account — which shuts not only Whiskers but also e-mail, VPN and the workstation sign-in.
To prevent this, enter your directory's value in Directory account lockout threshold and the directory's counter reset time (lockoutObservationWindow in AD) in Directory counter reset time. Within that time Whiskers forwards at most one less than the threshold of wrong passwords for an account; further attempts are refused without reaching the directory, and the time runs from the last wrong attempt. A successful sign-in resets the counter.
The trade-off: if someone exhausts the limit, the real user cannot sign in to Whiskers for that period, but their corporate account stays unlocked. Whiskers cannot see wrong attempts made in other systems; do not enter a reset time shorter than the directory's.
Sync¶
User and group sync runs manually with Sync now and automatically at the interval set on the IdP record (due syncs are checked every five minutes). Sync creates or updates the directory's groups in Whiskers, reconciles memberships and produces a report. Rules:
- A group deleted from the directory is not deleted in Whiskers but disabled, and its synced memberships are removed: its members lose the roles and access that came from the group. The group record stays, together with the roles and access settings bound to it; if the group returns to the directory it is re-enabled and its members come back with sync. Deleting the record entirely is an administrator decision.
- A mass loss of groups waits for approval. If the directory returned no groups, or the number of groups lost in one sync exceeds the Max. group removal ratio per run, no group is removed. This is usually a wrong group search base or filter (a base DN that does not exist also returns an empty result). A critical warning appears in Configuration health; Go fix opens the provider page and lists the pending groups by name. If the setting is wrong, fix it and press Sync now; the warning clears once the groups are seen. If the groups really were removed, confirm with Remove groups: the directory is read again and groups that have come back are left alone. Until you confirm, the members of these groups keep their access, so that a wrong setting does not lock out administrators whose role comes from a directory group.
- Memberships that came from sync are reconciled; memberships added manually in the panel are kept.
- A user missing from the directory is deactivated, their session ends and their seat returns to the pool; they are not deleted, and re-enabling them if they return is the administrator's job. Two safeguards: if the directory returned nothing, nobody is deactivated; if the number of users to deactivate in one run exceeds the ratio limit, nobody is deactivated and the report says so. In both cases check the directory connection and filters first.
Several providers¶
A tenant can have several providers: for example Entra ID for login, Active Directory for group sync, the built-in path for emergency access. The login page shows OIDC providers as buttons and LDAP providers as a list inside the tab, in priority order. The Settings card on the provider's detail page changes the name, Priority (a lower number is tried first), enabled state, Primary IdP (the default choice at sign-in; with several providers only one is primary) and the Sync interval (seconds) (empty means the default, at least 60). A record created in the panel starts with priority 100.
If you have moved to corporate sign-in completely, turn off Builtin (email/password) login enabled on the Security tab of Tenant Settings: only tenant administrators can then sign in with e-mail and password, and other users see on the sign-in screen that they must use their corporate account. The path stays open for administrators because it is the only way into the organisation when the identity provider fails or is misconfigured. Try corporate sign-in with a user before turning the switch off. Open sessions last until they expire.
Troubleshooting¶
- "Configuration could not be verified". For OIDC the issuer is not reachable from the network Whiskers runs in, or there is no discovery document; for LDAP the service account cannot bind. The error text names the cause.
- Login says "OIDC authentication failed". The redirect URI does not
match the provider exactly, the client secret expired, or the token has no
emailclaim (Entra account without a mailbox → mappreferred_username). Sign-in must be completed in the browser that started it and within 10 minutes: a sign-in link sent by someone else is refused (protection against session forgery). The redirect URI's address must also match the address users open (localhostand127.0.0.1count as different addresses). - The user signed in but sees no agents. No new-user group was selected; add the user to a group and pick groups on the provider record.
- "Identity provider did not verify the e-mail address". The provider
reported the e-mail as unverified; the user must verify it at the provider.
With Entra this message only appears when the
xms_edovmapping is on. - Changing a configured provider. Use Connection settings on the detail page. The settings are revalidated as a whole (discovery for OIDC, binding with the service account for LDAP); secret values (client secret, bind password) are not shown back and must be entered again to save — the new value replaces the old one. The LDAP attribute mapping is edited on its own card without asking for the bind password. Deleting the provider stops sign-ins through it; user records remain and stored secret values are deleted.