What single sign-on does
With single sign-on (SSO), the people in your organization sign in to the ModelRiver console through your company's identity provider instead of a ModelRiver password. When someone leaves and you turn off their account at the identity provider, they can no longer get in to your organization.
SSO covers the console: the people who set up projects, workflows, provider keys and API keys. It does not change how your applications call the API. Those keep using API keys.
ModelRiver supports OpenID Connect (OIDC), which Okta, Microsoft Entra ID, Google Workspace, Auth0 and most other identity providers offer, and SAML 2.0 (see SAML). An organization uses one or the other. If SAML isn't offered on the Single sign-on page, your plan doesn't include it, or it isn't turned on for your installation yet.
SSO with OpenID Connect is available on the Scale and Custom plans. SAML is available on Enterprise and other Custom plans. Owners and admins can see the settings; only the owner can change them.
Set it up
Open the organization menu, select Organization settings, then Single sign-on. Setup has three steps, and nothing changes for your members until you finish them.
1. Connect your identity provider
- Choose your provider: Google Workspace, Okta, Microsoft Entra ID or Other.
- At your identity provider, create an OpenID Connect web application.
- Register the Redirect URI shown on the Single sign-on page. Providers also call it the sign-in redirect URI or callback URL.
- Back in ModelRiver, enter what the page asks for, plus the Client ID and Client secret from that application, and save.
What the page asks for depends on the provider:
| Provider | You enter |
|---|---|
| Google Workspace | Nothing more |
| Okta | Your Okta domain, such as acme.okta.com |
| Microsoft Entra ID | Your Directory (tenant) ID |
| Other | The provider's issuer URL |
Choose Other for any other OpenID Connect provider, and for an Okta custom authorization server.
When you save, ModelRiver contacts the provider to confirm it is a working OpenID Connect provider. An issuer URL must use HTTPS and must be entered exactly as the provider reports it. If they differ, the error message shows the value to use.
The client secret is stored encrypted and is never shown again. To change it, enter a new one and save.
2. Verify your email domain
Add the email domain your company uses, such as company.com. ModelRiver shows a DNS TXT record:
| Field | Example |
|---|---|
| Type | TXT |
| Name | _modelriver-challenge.company.com |
| Value | modelriver-verify=... |
Add the record at your DNS provider, then select Verify. DNS changes can take a few minutes to appear.
Only people whose email address is on a verified domain can sign in with SSO. This is what stops an identity provider from signing someone in as an address your company does not own. A domain can be verified by one organization at a time, and public email providers such as gmail.com cannot be added. You can add up to 20 domains.
3. Try it
Select Sign in with SSO on the Single sign-on page and sign in through your identity provider. This confirms the connection works for you before you require it of everyone.
Members can now choose Continue with SSO on the sign-in page and enter their work email.
Provider setup guides
Okta
- In the Okta Admin Console, open Applications, select Create App Integration, then OIDC - OpenID Connect and Web Application.
- Under Sign-in redirect URIs, add the Redirect URI from ModelRiver.
- Assign the people or groups who should have access.
- In ModelRiver, choose Okta, enter your Okta domain, for example
your-company.okta.com, and the Client ID and Client secret from the application's General tab.
Microsoft Entra ID
- In the Entra admin center, open App registrations and select New registration.
- Under Redirect URI, choose Web and add the Redirect URI from ModelRiver.
- Under Certificates & secrets, create a client secret and copy its value.
- Under Token configuration, add the optional claim
emailfor ID tokens, so ModelRiver receives each person's email address. - Entra ID usually does not say whether an email address is verified. If sign-ins fail with "Your identity provider didn't confirm your email address", turn off Only accept verified email addresses on the Single sign-on page (see Verified email addresses).
- In ModelRiver, choose Microsoft Entra ID, enter your Directory (tenant) ID, and use the Application (client) ID as the Client ID. The shared
commonandorganizationsendpoints can't be used, because they accept accounts from any Microsoft tenant.
Google Workspace
- In the Google Cloud console, open APIs & Services, then Credentials, and create an OAuth client ID of type Web application.
- Under Authorized redirect URIs, add the Redirect URI from ModelRiver.
- Set the OAuth consent screen's user type to Internal, so only people in your Workspace can sign in.
- In ModelRiver, choose Google Workspace.
With Google, only Google Workspace accounts on one of your verified domains can sign in. A personal Google account is refused, even when it uses a company email address.
SAML
SAML is available on Enterprise and other Custom plans. Choose SAML above the provider list when your identity team asks for a SAML application, or when your provider offers only SAML.
If your organization moves to a plan without SAML, a SAML connection stops signing people in and is no longer required of them, so nobody is locked out. Switch it to OpenID Connect (turn off Require single sign-on first if it is on), or move back to Enterprise to use it again. Until then its settings can still be changed, but not its metadata.
-
At your identity provider, create a SAML 2.0 application with the two values shown on the Single sign-on page:
ModelRiver shows Okta calls it Microsoft Entra ID calls it ACS URL Single sign-on URL Reply URL (Assertion Consumer Service URL) Entity ID Audience URI (SP Entity ID) Identifier (Entity ID) -
Send each person's email address as an attribute named
email, or as the name ID with the email address format. Optionally sendfirstNameandlastName. Use a name ID that stays the same between sign-ins (persistent or email), not a transient one. -
Give ModelRiver the application's metadata: paste its metadata URL, or download the metadata XML and upload it. A metadata URL must use HTTPS.
-
Save, then continue with verifying your domain and trying it as for OpenID Connect.
When you save, ModelRiver checks the metadata and that a sign-in can start. Sign-ins must start at ModelRiver (Continue with SSO on the sign-in page); starting from the identity provider's app dashboard (IdP-initiated sign-in) is refused, because such a sign-in can't be tied to the browser that asked for it.
SAML has no "email verified" flag, so the Verified email addresses setting doesn't apply: the address your identity provider sends is used, and it must be on one of your verified domains.
Okta (SAML)
- In the Okta Admin Console, open Applications, select Create App Integration, then SAML 2.0.
- Enter the ACS URL as the Single sign-on URL and the Entity ID as the Audience URI (SP Entity ID). Set Name ID format to EmailAddress and Application username to Email.
- Under Attribute Statements, add
emailwith the valueuser.email. - Assign the people or groups who should have access.
- On the Sign On tab, copy the Metadata URL and paste it in ModelRiver.
Microsoft Entra ID (SAML)
- In the Entra admin center, open Enterprise applications, select New application, then Create your own application (a non-gallery application).
- Under Single sign-on, choose SAML. Under Basic SAML Configuration, enter the Entity ID as the Identifier and the ACS URL as the Reply URL.
- Under Attributes & Claims, add a claim named
emailwith the source attributeuser.mail. - Assign the users or groups who should have access.
- Under SAML Certificates, copy the App Federation Metadata Url and paste it in ModelRiver.
Certificates
Identity providers sign SAML responses with a certificate that expires, usually after one to three years. The Single sign-on page shows when it expires and warns you a month before. When your provider has a new certificate, select Refresh metadata (or upload the new metadata file). Refreshing the metadata of the same identity provider keeps everyone signed in and can be done while SSO is required.
Limits
- One identity provider per organization, and one organization per identity provider application: two organizations can't use the same SAML application (the same entity ID). Create one application per organization.
- Single logout and SCIM provisioning are not supported.
Verified email addresses
By default, ModelRiver only accepts an email address that your identity provider marks as verified. Okta and Google Workspace do this.
Some providers, Microsoft Entra ID among them, often send no such mark. For those, the owner can turn off Only accept verified email addresses. An address is then accepted when the provider says nothing about it. Before turning it off, make sure people cannot change their own email address at your identity provider. An address the provider marks as not verified is always refused, and the address must still be on one of your verified domains.
Who can sign in
By default, SSO signs in people who are already members of your organization. Invite them first from the Team page.
To let new people join without an invitation, turn on Let new people join by signing in. Anyone your identity provider lets in, with an address on a verified domain, then becomes a member the first time they sign in. Choose whether they join as a Viewer or an Editor. New members are never made admins; change a role on the Team page. Joining still counts against your plan's member limit.
Someone who already has a ModelRiver account with the same email address keeps that account. Their first SSO sign-in links it to your identity provider.
To add people before they sign in, and to remove them the moment they leave, use directory sync. While it is on, someone your identity provider removed cannot join again by signing in.
If a member has turned on two-factor authentication for their own ModelRiver account, they are still asked for their code after signing in with SSO.
Require single sign-on
Once SSO works, the owner can turn on Require single sign-on. From then on:
- Members can only reach your organization's projects, logs and settings from a session that signed in with SSO.
- They are asked to sign in with SSO again every 12 hours. Because of this, someone removed at your identity provider loses access to your organization within 12 hours.
- Signing in with a password, Google or GitHub still works for a member's other organizations, but not for yours.
- Members whose email address is not on a verified domain can no longer get in. The Single sign-on page lists them when you turn the requirement on.
You can only turn the requirement on after you have signed in with SSO yourself, so a mistake in the setup cannot lock everyone out, and once two-factor authentication is on for your own account, so you can still get in if your identity provider stops working (see below).
While SSO is required, the identity provider (and whether it uses OpenID Connect or SAML) cannot be changed. Turn the requirement off, change the provider, sign in with it yourself, then turn the requirement back on. The client ID and client secret, and a SAML provider's metadata, can still be updated. Changing to a different provider, or to a different client ID, also means members are matched again by email address the next time they sign in.
If your identity provider is unavailable
The organization owner can still sign in with their password, as long as two-factor authentication is on for their account. That's why requiring SSO needs it, so keep it on while SSO is required. Every such sign-in appears in the audit log.
The requirement stops applying if the connection is removed, no verified domain is left, or the organization moves to a plan without SSO. Members then sign in the way they did before.
Sessions
Each sign-in creates a session that you can see under Settings, in Active sessions, with the browser, the sign-in method and when it was last used. Select Sign out next to a session to end it. A session that is signed out stops working on its next request.
Resetting your password signs you out on every device. When a member is removed from an organization, their sessions that signed in through that organization's SSO end too.
Audit log
The organization audit log records SSO setup and changes, domains added, verified and removed, the requirement being turned on or off, and each sign-in, including failed ones.
Troubleshooting
- "Single sign-on isn't set up for this email address": the address's domain is not verified for an organization with SSO turned on. Check the spelling, or sign in another way.
- "You don't have access to this organization yet": you are not a member and joining by signing in is off. Ask an admin to invite you.
- "Your email address isn't on a domain this organization has verified": your identity provider reported an address on another domain. Ask the owner to verify that domain.
- "Sign in with your company's Google Workspace account": you chose a personal Google account. Choose your Workspace account at Google's sign-in screen.
- "The TXT record wasn't found yet": the DNS record has not appeared. Check the name and value, wait a few minutes and select Verify again.
- "The provider reports its issuer as ...": enter that exact value as the Issuer URL.
- "Your identity provider didn't confirm your email address": the provider did not mark the address as verified. See Verified email addresses.
- "Your ModelRiver account hasn't confirmed its email address": an account with your address exists, but nobody has proven they receive its mail. Select Forgot your password? on the sign-in page and set a new password, which confirms the address, then use Continue with SSO again. Because nobody had confirmed the account before, the reset also disconnects any Google or GitHub account from it; connect yours again afterwards. Two-factor authentication stays on: if it was set up by someone else and you can't enter its code, contact support.
- Microsoft Entra ID sign-ins fail: make sure the
emailoptional claim is added for ID tokens. - "Your identity provider didn't send an email address" (SAML): send the email as an attribute named
email, or as the name ID with the email address format. - "Start single sign-on from the ModelRiver sign-in page" (SAML): you opened ModelRiver from your identity provider's app dashboard. Use Continue with SSO on the ModelRiver sign-in page instead.
- "The identity provider only accepts sign-in requests by HTTP POST" (SAML): turn on the HTTP-Redirect binding for the application, then upload its metadata again.
- "Another organization already uses this identity provider" (SAML): create a separate SAML application for this organization.
- SAML sign-ins stop working after months: the identity provider's signing certificate changed. Select Refresh metadata on the Single sign-on page.