Single sign-on (SSO)
People sign in to Erlangly with their company account, through Microsoft Entra ID, Google Workspace, Okta or any OpenID Connect provider, instead of an Erlangly password. It's in every plan, the free plan included: there's no enterprise tier to buy first.
What you get
- One company account: the sign-in page offers a “Sign in with…” button for your provider, and people never need an Erlangly password.
- Require it for staff (admins, planners and supervisors) or for everyone. Once it's required, nobody can sign in with an Erlangly password or reset one, and anyone signed in with one is signed out.
- Leavers lose access with their company account. Single sign-on sessions last 12 hours; then Erlangly checks with your provider again, so someone turned off there can't come back. Turning someone's account off under Settings → Users signs them out everywhere at once.
- Only the people you've invited, with a verified email address in the domains you allow. Guest accounts from other organizations are turned away, and the domain is checked at every sign-in.
- Never locked out: break-glass admins keep a password for when your provider is down, and sign in with it and two-factor authentication, and each of their password sign-ins is emailed to the other admins. On the server,
erlangly sso offstops requiring it.
Before you start
- Erlangly served over HTTPS: installed with a domain, or behind your own HTTPS proxy. Identity providers only send people back to https:// addresses.
- Someone who can register an app with your identity provider, usually your IT team.
- Your people invited to Erlangly with their work email address, their main address at the provider rather than an alias. Signing in doesn't create accounts.
Set it up
- In Erlangly, go to Settings → Sign-in and choose your provider. Copy the redirect URI it shows.
- In your identity provider, create an app for Erlangly (Microsoft Entra calls it an app registration; Okta and Google, an OIDC web app) with that redirect URI and the
openid,emailandprofilescopes. Have it say when someone signed in (auth_time), which admins need to confirm it's them: with Google, turn on session age claims for the OAuth client; with Microsoft Entra ID, add theauth_timeoptional claim to the app registration's ID token (Token configuration). Okta and others generally send it when asked. - Back in Erlangly, fill in its details: Microsoft Entra's tenant ID (on the app registration's Overview page), your Okta address, or another provider's issuer address; the client ID and secret; and the email domains people sign in with.
- Test it by signing in with your own account. That shows it works, and links your account so you can always get back in.
- Turn it on. The sign-in page now offers it to everyone.
- Require it, if you want to: for staff or for everyone, with at least one break-glass admin.
When someone's company account changes
The first time someone signs in with your provider, their Erlangly account is linked to it by their verified email address, in a domain you allow. After that the provider's user ID is the link, so a reused email address can't take over an account.
- Someone's company account deleted and made again: the provider gives the new account a new user ID, so signing in refuses them as “already linked to a different … account”. Open them under Settings → Users and choose Unlink company account. It's in the audit trail, anything signed in with the old account is signed out, and they link again the next time they sign in, by their verified email address. Unlinking an admin takes the code from your own app, if you use two-factor authentication, and every admin is emailed.
- Changing the client ID under Settings → Sign-in (a new app registration in Microsoft Entra, say), or the issuer, clears everyone's link, as each provider and app registration has its own user IDs. Nobody is locked out: everyone links again the next time they sign in, by their verified email address. Like any change to how it connects, it's off until you test it and turn it on again.
Confirming it's you
Before an admin makes or changes an integration or a webhook, Erlangly asks them to confirm it's them. Admins who sign in with your provider sign in to it again, and it must say they did within the last 10 minutes, with the ID token's auth_time, which Erlangly asks for by name.
- Google: turn on session age claims for Erlangly's OAuth client. Google doesn't ask who someone is again by itself, so to confirm, sign out of Google, then sign back in when Erlangly sends you there.
- Microsoft Entra ID: add the
auth_timeoptional claim to the ID token in Erlangly's app registration (Token configuration). - Okta and others generally send it when asked, and ask you to sign in again.
How it keeps sign-in safe
- OpenID Connect with PKCE. Erlangly checks the provider's signature on every sign-in itself, against the provider's published keys, along with who issued it, who it's for and when it expires.
- Erlangly only talks to your provider's own addresses, which it finds from the issuer you give it.
- The client secret is stored encrypted, and every change to sign-in settings is in the audit trail.
- Everything stays on your server: your provider sends people back to your own install, never through us.
Questions
- SAML? Not yet. OpenID Connect covers Microsoft Entra ID, Okta, Google Workspace, JumpCloud, Keycloak, Auth0 and AD FS 2016 or later. If you need SAML, tell us.
- Accounts created from the provider (SCIM)? Not yet: add people in Erlangly, one by one or from a spreadsheet, and invite them. Single sign-on then signs them in.
- Roles from the provider's groups? Roles are set in Erlangly, under Users.
- Several providers? One per install.
- Does it cost extra? No. Every plan has every feature, single sign-on included.