Who can do this: admins who signed in with a password or an email link. The Single sign-on tab is hidden in a session that came through SSO, so nobody locks themselves out mid-change.
Before you start: you need admin access to your identity provider (IdP) to create a SAML app there.
Go to Organization → Single sign-on. The status at the top reads Not set up, IdP connected - link a domain, Connected - run a test sign-in or Active. Each step shows a check mark when it's done.
1. Moon's details for your IdP
In your IdP, create a SAML app.
Copy the ACS URL (Reply URL, Single sign-on URL) and the Entity ID (Audience, Identifier) from Moon into it. Or click Download Moon metadata (XML) and upload that file to the IdP.
2. Your identity provider
Pick one way to give Moon your IdP's details:
Metadata URL (recommended): paste the IdP metadata URL. Moon keeps reading it, so a new IdP certificate needs nothing from you.
Metadata file: upload the IdP's metadata file (.xml).
Enter by hand: the Sign-in URL (SSO URL), the Entity ID (Issuer) and the Signing certificate (.pem, .cer, .crt).
Click Save identity provider. To change it later, click Change.
3. Email domains
Link the domains whose people should sign in through your IdP. Click a suggested domain, or type one in another domain and click Link. You can link your own email's domain, or one a member of the organization signs in with.
4. Roles
Everyone: the role people get the first time they sign in through your IdP.
Email attribute and Groups attribute: the names of the IdP attributes that carry them (by default
emailandgroups).Map a group: give an IdP group a different role.
Click Save roles. An owner is never made through SSO.
5. Test it
Click Test sign-in. Your IdP opens in a new tab and signs you in there only; you stay signed in in the console. The new tab says The test passed, or explains what failed. Once it passes, SSO works for everyone at your linked domains.
Remove single sign-on
Click Remove single sign-on, then Remove. The IdP is disconnected and the domains are released. People sign in with a password or an email link again.
Troubleshooting
What you see | What to do |
|---|---|
Signed in, but not on a linked domain | Link the email's domain in step 3, or check which email the IdP sends. |
The IdP changed since the last test. Test again. | Run Test sign-in again. |
A certificate warning at the top | Upload the IdP's new certificate in step 2 before the date shown. Sign-ins fail once it expires. |
Single sign-on is required | Password and email-link sign-in are off for everyone. Click Stop requiring before you change the IdP or unlink the last domain. |
Single sign-on isn't available on this server yet. | Contact Moon to turn it on. |
More causes and fixes: Single sign-on doesn't work.