Single Sign-On (SSO)
SSO lets members sign in to your organization through your company's identity provider. They use their work credentials and do not need a LearnHouse password.
SSO needs the Enterprise plan on LearnHouse Cloud, or the Enterprise Edition when self-hosted.
Supported providers
| Provider | Description |
|---|---|
| SAML and OIDC through WorkOS, with a hosted setup portal for your IT team. Available when the instance has WorkOS credentials. | |
| Connect any OpenID Connect provider directly: Microsoft Entra ID, Okta, Google Workspace, Keycloak, Auth0 and others |
Setting up SSO
Go to Developers → SSO. Only the Admin role can change SSO, and the organization's two-factor policy applies.
- Pick the SSO Provider and fill in its settings (see the provider pages).
- Set the options below.
- Turn on Enable SSO and click Save Configuration.
The provider cannot be changed once the configuration is saved. To switch providers, use Delete SSO Configuration and start again.
| Option | Description |
|---|---|
| Allow users to authenticate using your organization's identity provider. | |
Comma-separated list of email domains allowed to sign in through SSO, for example example.com, company.orgexample.commail.example.com | |
| On by default. Automatically create accounts for first-time SSO sign-ins. When off, only people who already have an account can sign in. |
To make SSO the only way in, also restrict the allowed sign-in methods to SSO.
How members sign in
- On your login page, the member clicks Sign in with SSO.
- They are sent to your identity provider and sign in there.
- The provider sends them back to LearnHouse, signed in.
New accounts
With Auto-provision Users on, a member's first SSO sign-in creates their LearnHouse account:
- First name, last name, email and avatar come from the identity provider.
- They get the User role. A different default role can only be set through the API.
- The organization's member limit still applies.
- Their email counts as verified only if your organization has a verified custom domain for that email domain.
Existing accounts
LearnHouse does not link an SSO identity to an existing account just because the email matches. An existing account is accepted only when:
- it was linked to this SSO identity before, or
- it has never signed in any other way and belongs only to this organization.
Otherwise the sign-in is refused, and the member is asked to sign in with their usual method. Backoffice accounts can never sign in through SSO.
Members who sign in through SSO can be exempted from your two-factor requirement, since the identity provider handles it. See Two-Factor Authentication.
Callback URL
Your identity provider needs LearnHouse's callback URL:
<base URL>/api/v1/auth/sso/callback
LearnHouse builds it from SSO_REDIRECT_URI_BASE, or from LEARNHOUSE_DOMAIN when that is not set. On a self-hosted instance, set SSO_REDIRECT_URI_BASE to the public URL of your instance, including https://. To use a completely different URL, set SSO_REDIRECT_URI to the full callback URL instead.