Single sign-on (SSO)
How to let your team sign in to Remi through the system your company already uses, such as Okta, Microsoft Entra ID, Google Workspace or authentik, step by step for each one, how to test it, how to make it the only way in, and what to do if you're locked out.
If your company already has one place where everyone signs in for work, such as Okta, Microsoft or Google, you can connect Remi to it. From then on, when someone on your team types their email at remiapp.ai, Remi sends them to your company's sign-in page instead of emailing a code, and once they're in there, they're in Remi too. This is called single sign-on. It means one less code to type for your team, and once you make it the only way in, it means that when someone leaves and their work account is switched off, they can't get into Remi either.
Single sign-on works with any provider that speaks OpenID Connect, which is the standard most providers use for signing in, and with the older SAML standard, which some companies still ask for. Where both work, Remi recommends OpenID Connect, because it has fewer moving parts, and SAML is one select away. Only an owner or admin can set it up, from Settings then Security. Everyone else signs in as usual and finds themselves at the company's sign-in page.
Before you start
You'll need these to hand.
- Your domain added to Remi. Verify your domain explains how. A domain that matches your own email is enough to set single sign-on up and test it with the people already in your team. To bring in people who aren't in your team yet, or to make single sign-on required, the domain has to be verified with the TXT record.
- Admin access to your provider. You'll be creating a Remi app there and copying a few values between it and Remi. If someone else runs it for you, the steps below are written so you can send them along.
- About twenty minutes, most of it in your provider's console.
Setting up is four short steps: choose your provider, add Remi to it, paste its details into Remi, and sign in once yourself to test it. Remi keeps your place, so you can switch between Remi and your provider's console, or come back later, without losing anything. Select Set up single sign-on under Single sign-on to begin, then follow the tab for your provider.
Connect your provider
Okta
In Remi, choose Okta. Remi shows you a Redirect URI with a Copy button, which is the address Okta sends people back to once they've signed in.
- In the Okta Admin Console, go to Applications then Applications and select Create App Integration.
- Choose OIDC - OpenID Connect as the sign-in method and Web Application as the application type, then select Next.
- Name it Remi. Under Sign-in redirect URIs, replace the example with Remi's Redirect URI, and delete the example under Sign-out redirect URIs.
- Under Assignments, choose who can use Remi. Allow everyone in your organization to access is the simplest, and you can narrow it to groups later. Select Save.
- On the app's General tab, under Client Credentials, copy the Client ID. Make sure Client authentication is set to Client secret, then copy the secret from Client secrets.
- Back in Remi, select Next and paste in your Okta domain, which is the address you sign in to Okta at, such as
mercerholt.okta.com, then the Client ID and the Client secret. Select Next, and Remi checks it can reach Okta.
If your company asks for SAML instead, choose SAML above the steps in Remi, and Remi shows you a Single sign-on URL (ACS URL) and an Audience (SP Entity ID) instead of the redirect URI. In Okta, create the app with SAML 2.0 as the sign-in method, name it Remi, and in Configure SAML paste the ACS URL into Single sign-on URL, keeping Use this for Recipient URL and Destination URL ticked, and the Audience into Audience URI (SP Entity ID). Set Name ID format to EmailAddress and Application username to Email. Under Attribute Statements, add email, firstName and lastName, mapped to user.email, user.firstName and user.lastName, then select Next and Finish. On the app's Sign On tab, copy the Metadata URL. Back in Remi, on the Metadata URL tab, paste it into Okta's metadata URL. Then choose who can use Remi under Assignments.
Microsoft Entra ID
Microsoft Entra ID is the sign-in behind Microsoft 365, and it used to be called Azure AD. In Remi, choose Microsoft Entra ID. Remi shows you a Redirect URI with a Copy button, which is the address Microsoft sends people back to once they've signed in.
- In the Microsoft Entra admin center, go to Entra ID then App registrations and select New registration.
- Name it Remi. Under Supported account types, choose the first option, Single tenant only, so that only your own organisation can use it.
- Under Redirect URI, choose Web and paste Remi's Redirect URI. Select Register.
- On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID.
- Go to Certificates & secrets, select New client secret, give it a description and choose when it Expires. Select Add, then copy the secret's Value straight away, because Microsoft only shows it once. Note the expiry date too, because single sign-on stops working on that day until you make a new secret and paste it into Remi.
- Go to Token configuration, select Add optional claim, choose the ID token type, tick email and xms_edov, and select Add. If Microsoft asks to turn on the Microsoft Graph email permission as well, agree to it. The first tells Remi the person's email address and the second tells Remi that Microsoft has checked it belongs to your organisation. Without them, the test fails.
- Back in Remi, select Next and paste in the Directory (tenant) ID, the Application (client) ID and the Client secret value. Under Secret expires on (optional), enter the date Microsoft showed next to the secret, and Remi will email the account's owners and admins thirty days and seven days before it, so that single sign-on doesn't stop without warning. Select Next, and Remi checks it can reach Microsoft.
By default everyone in your organisation can sign in to Remi this way. To limit it to certain people or groups, go to Entra ID then Enterprise apps, open Remi, set Assignment required? to Yes under Properties, and add them under Users and groups.
If your company asks for SAML instead, choose SAML above the steps in Remi, and Remi shows you a Single sign-on URL (ACS URL) and an Audience (SP Entity ID) instead of the redirect URI. In Entra, go to Enterprise apps then New application then Create your own application, name it Remi, choose Integrate any other application you don't find in the gallery, and select Create. Open Single sign-on, choose SAML, and select Edit on Basic SAML Configuration. Paste the Audience into Identifier (Entity ID) and the ACS URL into Reply URL (Assertion Consumer Service URL), then Save. Under SAML Certificates, copy the App Federation Metadata Url. Back in Remi, on the Metadata URL tab, paste it into Microsoft Entra ID's metadata URL. Then add people under Users and groups.
Google Workspace
Google Workspace signs people in through a Google Cloud project, which is free and takes a few minutes to set up if your company doesn't have one. Sign in to the Google Cloud console with your Workspace admin account. In Remi, choose Google Workspace. Remi shows you a Redirect URI with a Copy button, which is the address Google sends people back to once they've signed in.
- In the Google Cloud console, choose or create a project for Remi.
- Go to Google Auth Platform. If you haven't used it before, select Get started, name the app Remi, choose a support email, and under Audience choose Internal, so that only people in your Workspace can use it. Finish the short form.
- Go to Clients, select Create client, and choose Web application. Give it a name, such as Remi.
- Under Authorized redirect URIs, select Add URI and paste Remi's Redirect URI. Select Create.
- Copy the Client ID and the Client secret. Google shows the whole secret only now, so copy it before you close the window.
- Back in Remi, select Next and paste in the Client ID and Client secret. Select Next, and Remi checks it can reach Google.
Google can take a few minutes, and now and then a few hours, to start accepting a new client, so if the test fails straight after you've set it up, give it a little while and try again. Remi only lets people in from the domains you've added to Remi, so a personal Google account can't use your company's sign-in.
If your company asks for SAML instead, choose SAML above the steps in Remi, and Remi shows you a Single sign-on URL (ACS URL) and an Audience (SP Entity ID) instead of the redirect URI. Go to the Google Admin console, then Apps then Web and mobile apps then Add app then Add custom SAML app. Name it Remi and select Continue. On Google Identity Provider details, select Download metadata to save Google's details as a file, then Continue. Under Service provider details, paste the ACS URL into ACS URL and the Audience into Entity ID, set Name ID format to EMAIL and Name ID to Basic Information then Primary email, and select Continue. Map Primary email, First name and Last name to email, firstName and lastName, then select Finish. Open the app's User access, turn it ON for everyone or on for the groups who use Remi, and select Save, because Google starts every new app switched off. Back in Remi, choose Upload metadata and upload the file you downloaded.
authentik
authentik is an open-source sign-in system you run yourself. In Remi, choose authentik. Remi shows you a Redirect URI with a Copy button, which is the address authentik sends people back to once they've signed in.
- In the authentik admin interface, go to Applications then Applications and select Create with provider.
- Name it Remi, give it a slug such as
remi, and choose OAuth2/OpenID Provider as the provider type. - Set Client type to Confidential. Copy the Client ID and the Client Secret that authentik has filled in.
- Under Redirect URIs, add Remi's Redirect URI as a Strict match.
- Under Signing Key, choose a certificate, such as the authentik Self-signed Certificate. Remi needs tokens signed with a key, and without one authentik signs them with a shared secret instead, which Remi refuses.
- Choose who can use Remi under the application's Policy / Group / User Bindings, then select Submit.
- Open the provider under Applications then Providers and copy the OpenID Configuration Issuer. It looks like
https://authentik.mercerholt.co.uk/application/o/remi/. - Back in Remi, select Next and paste in the Issuer URL, the Client ID and the Client secret. Select Next, and Remi checks it can reach authentik.
If your company asks for SAML instead, choose SAML above the steps in Remi, and Remi shows you a Single sign-on URL (ACS URL) and an Audience (SP Entity ID) instead of the redirect URI. In authentik, choose SAML Provider as the provider type, paste the ACS URL into ACS URL and the Audience into Audience, and set Service Provider Binding to Post. Choose a Signing Certificate and make sure Sign assertions is ticked, because Remi refuses assertions that aren't signed. Select Submit, then on the provider's page copy the metadata Download URL. Back in Remi, on the Metadata URL tab, paste it into authentik's metadata URL.
Other OIDC provider
Any provider that supports OpenID Connect can connect to Remi, as long as it publishes its settings at the usual address and signs its tokens with a key. It will ask you to create an app, a client or a relying party, which are different names for the same thing. In Remi, choose Another provider (OIDC). Remi shows you a Redirect URI with a Copy button.
If your company signs in with Google Workspace or Microsoft Entra ID, choose those from the list rather than this tab, because those two options also check that people are in your company's Google domain or Microsoft directory. If you paste a Google or Microsoft issuer here, Remi says so and asks you to go back and pick the right one.
- In your provider, create a web application that uses the authorisation code flow. Choose the confidential or web type if you're asked.
- Where it asks for a redirect, callback or reply address, paste Remi's Redirect URI.
- Allow the scopes
openid,emailandprofile, and make sure it signs ID tokens with RS256 or ES256. Most providers do both by default. - Make sure the ID token includes the person's email address and an
email_verifiedclaim. - Copy the app's Issuer URL, Client ID and Client secret. The issuer is the address your provider publishes its settings under, and Remi finds everything else from there. If your provider shows you a "well-known" or "discovery" address ending in
/.well-known/openid-configuration, the issuer is that address without that ending. - Back in Remi, select Next, paste in the three values, and select Next again. Remi checks it can reach your provider.
Other SAML provider
Any provider that supports SAML 2.0 can connect to Remi. It will ask you to create an app, a service provider or a relying party, which are different names for the same thing. In Remi, choose Another provider (SAML). Remi shows you a Single sign-on URL (ACS URL), an Audience (SP Entity ID) and Remi's metadata URL, each with a Copy button, and the three attributes it expects.
- In your provider, create a new SAML 2.0 app for Remi.
- Give it Remi's ACS URL and Audience. Providers name these fields differently: the ACS URL goes wherever it asks for the assertion consumer service, reply or single sign-on URL, and the Audience wherever it asks for the audience, entity ID or identifier. If your provider can read a service provider's details from a link, give it Remi's metadata URL instead and it fills in both.
- Send the person's email address as the Name ID, and add attributes named
email,firstNameandlastName. - Sign the assertion itself with SHA-256, because Remi refuses assertions that aren't signed, and signing only the response isn't enough.
- Find the app's metadata. Back in Remi, select Next, then either paste its Metadata URL, choose Upload metadata for an XML file, or choose Enter by hand and paste the Sign-in URL, the Issuer (IdP Entity ID) and the Certificate separately.
Before moving on, Remi shows you what it read: the issuer, the sign-in URL and when the certificate expires. If the certificate expires within thirty days, Remi says so, which is your chance to swap it in your provider before anyone depends on it.
If Remi can't reach your provider with the details you pasted, it says why under the field, such as an address that isn't https:// or a provider that signs tokens in a way Remi doesn't accept, and you can fix it and try again.
To check it worked: Remi moves on to the test step, and the connection is listed under Single sign-on on the Security page with your provider's name and the badge Not tested.
Test the connection
Before anyone else uses it, Remi asks you to sign in through the new connection yourself. This is the step that keeps a typo from locking your team out.
- On the test step, select Test sign-in. If you've left the setup flow, select Continue setup on the Security page to get back to it. A new tab opens on your provider's sign-in page.
- Sign in there as someone with an email on your domain who has access to the Remi app in your provider. That can be you.
- When your provider sends you back, the tab tells you it's done and you can close it. Back in Remi, the test step shows whether it worked.
If it worked, Remi shows you what your provider told it about you: your email, your name, whether your provider says the email is verified, and the ID it signed you in with. If it didn't work, Remi says why, in its own words and in your provider's, so that the person who runs your provider can look it up. The most common reasons are a redirect URI that doesn't match, a client secret pasted from the wrong field, and a provider that didn't send the email address. Nobody on your team is affected by a failed test, and you can change the details and test again.
If the test never comes back, your provider probably showed an error on its own page, usually because the redirect URI there doesn't match Remi's. Check it, close that tab, and test again.
To check it worked: the connection shows Ready to turn on on the Security page, with Tested by your name and today's date under it.
Turn it on
Once a test has passed, select Turn on. Remi tells you which domains it applies to and asks you to confirm, because from this moment people other than you can use it. Until you require single sign-on, it's a choice alongside the email code, so nobody is locked out by turning it on.
Once it's on, you choose whether people who aren't in your team yet can join by signing in. The switch Add new people when they first sign in is on from the start, so anyone your provider lets into the Remi app gets a place in your team the first time they sign in, with the role you pick under Role for new people, either Viewer or Member. You can change anyone's role later on the Team page, which Invite your team and set roles explains. If you'd rather invite people yourself, turn the switch off, and someone your provider lets through who isn't in the team yet is told they're not in it and to ask an admin for an invitation. The switch stays off until one of your domains is verified, because until then Remi can't be sure the people arriving are yours, and while single sign-on is required, only an owner can change it.
With a SAML connection, two more things appear. A Signing certificate row shows when your provider's certificate expires. Remi warns you thirty days before, and if you gave it a metadata URL it reads that link every day and picks up a new certificate by itself, so a routine rotation at your provider needs nothing from you. Whenever it does, Remi emails the account's owners and admins with the new certificate's fingerprint, so that a certificate nobody at your company changed gets noticed straight away. If you only uploaded a file, select Update certificate when your provider changes it. The second is a switch, Start from Okta (or your provider's name), off to begin with. With it on, people can open Remi from their provider's app list, and Remi asks them Continue to Remi? with their email and the account's name before it signs them in. With it off, that path takes them to Remi's sign-in page instead, which still works. While single sign-on is required, only an owner can turn this switch on.
If you change the connection's details later, Remi switches it to Needs a new test and asks you to test it again before your team relies on it. You can also Turn off single sign-on at any time, which sends everyone back to email codes without signing anyone out. The badge then reads Off, and Turn on brings it back without setting it up again. The Remi app in your provider stays there until you delete it.
To take the connection out altogether, choose Remove in the same menu. Only an owner can do this, and Remi asks them to confirm it's them first. It can't be done while single sign-on is required, so stop requiring it before you remove it. Remi forgets the connection's details, its tests and its keys, and your team goes back to signing in with an email code. Your domains, your SCIM tokens and the links between people's company sign-in and their Remi account all stay, so if you connect the same provider again later, the same people sign straight back in. As with turning it off, the Remi app in your provider stays there until you delete it.
To check it worked: the badge under Single sign-on reads On, and Settings then Activity shows that you turned it on.
How your team signs in
Nobody on your team has to do anything new. Someone goes to remiapp.ai, types their email and selects Continue. Because their email is on your domain, Remi shows Sign in through mercerholt.co.uk, naming your domain, and a Continue button, instead of emailing a code. They select it, sign in on your company's page, and they're back in Remi, signed in. If they're already signed in to your company system, they may not be asked for anything at all. Until you require single sign-on, they can select Email me a code instead.
The first time someone signs in this way, Remi links the sign-in to their existing Remi account, found by their email address, so nothing about their chats, documents or settings changes, and Remi emails them to say which account the link was made to.
The same sign-in works in every Remi app. Remi Desktop, the Remi CLI and the browser extension send you to your browser to sign in, so they pick up your company's sign-in without any setup, and the iPhone and Android apps open your company's sign-in page on top of Remi and bring you back when you're done. Nobody is ever asked for an email code they can't get.
People who sign in this way aren't asked for a passkey or authenticator app by Remi, because your provider has already checked it's them. When Remi does need to be sure it's them before a sensitive change, it offers Confirm with Okta (or your provider's name), which opens your company's sign-in in a new window and carries on by itself once they're through. Account and security has the details, including what happens if your provider turns someone away.
Require single sign-on
To begin with, single sign-on is one way in alongside the others: someone on your domain can still choose an email code or Sign in with Google. When you're happy with the connection, you can make it the only way in for your domain, so that leaving your company system is enough to leave Remi. This is the one setting here that can lock people out, so Remi asks more of you before it does it.
Only an owner can require it, because it changes how everyone gets in, and Remi lets them only when a test has passed since the details were last changed, a domain is verified, and at least one owner has a passkey or an authenticator app, so there's always a way back in. The Require… button stays off until all of that is true, and the line under it says what's missing.
- Under Single sign-on, find Require single sign-on and select Require….
- Remi tells you how many people in your team use an email on the domain, and how many of them haven't signed in through your provider yet. Select See who to check that they can before you go ahead.
- Type the domain to confirm, and select Require single sign-on.
Anyone on your domain who signed in another way is signed out at that moment, on every device, and signs back in through your company's sign-in, while owners stay signed in so that someone can always get back to this page. From then on an email code, a sign-in link or Sign in with Google on your domain tells people that their company asks everyone to sign in through it, and offers to take them there, in every Remi app. Each sign-in through your company lasts up to 24 hours, and then Remi sends the person back to your company's sign-in, which usually lets them straight through.
Tokens made for scripts stop working too, unless they were made while signed in through your company, and that includes the owners' own tokens. Remi emails the owners to say which ones stopped, so that a script that goes quiet can be traced. Making a new token needs a sign-in through your company system first: an owner who got in with an email code is asked to Sign in with your company before Remi creates it. Remi also emails the account's owners and admins to say that single sign-on is now required.
If you change the connection's details later, the requirement is switched off until a new test passes, and your team can use an email code in the meantime, so a typo in a setting can't lock everyone out. Stop requiring, in the row's menu, lets people choose an email code or Google again at any time, and single sign-on stays on for anyone who wants it.
To check it worked: the row reads Required, Settings then Activity shows that you required it, and signing in with an email code on your domain now sends you to your company's sign-in.
If you're locked out
Until single sign-on is required, nobody can be locked out: Email me a code instead is always there. Once it is required, if your provider is down, misconfigured, or you've lost access to it, the account's owners can still get in, as long as they have a passkey or an authenticator app, which Add a second check explains.
- Go to remiapp.ai, type your email and select Continue.
- On the Sign in through mercerholt.co.uk step, select Email me a code instead. Because you're an owner, Remi emails you a code.
- Type the code, then confirm with your passkey or authenticator app. Remi tells you that the other owners and admins will be emailed to say an owner signed in this way, and that's written to Settings then Activity too.
You're then signed in for eight hours. From Settings then Security you can Stop requiring single sign-on, fix the connection and test it again, or turn it off altogether, and everyone on your domain goes back to signing in with email codes while you do.
If no owner has a passkey or an authenticator app, write to the Remi team from an owner's email address and we'll help you get back in.
Verify your domain
How to tell Remi which email domain your company uses, how to prove the domain is yours with a DNS record, and what that lets you do next, such as single sign-on and letting your IT team manage who's on the account.
SCIM provisioning
How to connect Remi to Okta, Microsoft Entra ID or authentik so that people are added to your Remi team and removed from it by the same system your IT team already uses, what to do about Google Workspace, and what it means for someone to be managed this way.