RemiDocs

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.

  1. In the Okta Admin Console, go to Applications then Applications and select Create App Integration.
  2. Choose OIDC - OpenID Connect as the sign-in method and Web Application as the application type, then select Next.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

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.

  1. 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.
  2. 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.
  3. 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.

  1. Under Single sign-on, find Require single sign-on and select Require….
  2. 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.
  3. 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.

  1. Go to remiapp.ai, type your email and select Continue.
  2. 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.
  3. 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.

On this page