Set up single sign-on with Okta

Let your team sign in to SafeRewind with their Okta accounts.

When single sign-on (SSO) is on, people on your company's email domain sign in to SafeRewind through Okta, the same way they sign in to your other work apps. The first time someone signs in this way, they join your SafeRewind organisation automatically.

Setup takes about 15 minutes. You switch between two tabs: SafeRewind's Single sign-on page and the Okta Admin Console.

Before you start

You need:

  • A SafeRewind organisation on the Business plan.
  • The owner or admin role in that organisation.
  • Okta admin access that lets you create app integrations (for example, the Super Administrator or Application Administrator role).
  • Access to your company domain's DNS settings, or someone who has it. You add one TXT record to prove you own the domain.
SafeRewind connects to Okta with OpenID Connect (OIDC). SAML isn't supported yet.

1. Copy the redirect URI from SafeRewind

  1. In SafeRewind, open Single sign-on in the sidebar.
  2. Under 1. Create an app, copy the redirect URI. It ends in /sso/callback/sso- followed by your organisation's ID.

Okta sends people back to this address after they sign in. It's unique to your organisation, so copy it from the page rather than typing it.

2. Create the app in Okta

  1. In the Okta Admin Console, go to Applications → Applications. Newer consoles call the menu Applications and Resources → Applications.
  2. Click Create App Integration. If Okta asks which experience to use, choose Classic experience.
  3. For Sign-in method, choose OIDC - OpenID Connect.
  4. For Application type, choose Web Application, then click Next.
  5. Fill in General Settings:
    • App integration name: SafeRewind.
    • Client definition, if shown: choose Use Okta-generated client ID. SafeRewind doesn't support a Client ID Metadata Document (CIMD). The rest of the form appears once you choose.
    • Proof of possession, if shown: leave Require Demonstrating Proof of Possession (DPoP) header in token requests unticked. SafeRewind doesn't send DPoP headers, so sign-in would fail.
    • Grant type: leave Authorization Code selected. You don't need any other grant type.
    • Sign-in redirect URIs: remove the example address and paste the redirect URI you copied from SafeRewind.
    • Sign-out redirect URIs: remove the example address and leave the field empty.
    • Trusted Origins: leave empty.
  6. Under Assignments, choose who can use SafeRewind:
    • Limit access to selected groups (recommended): pick the groups that should have SafeRewind, such as engineering and QA.
    • Allow everyone in your organization to access: anyone in your Okta org can sign in.
  7. Click Save.
You don't need to set up scopes. SafeRewind asks for openid, email and profile, and Okta grants them to every OIDC app by default.

3. Copy the client ID, client secret and issuer URL

The app's General tab opens after you save.

  1. Under Client Credentials, check that Client authentication is set to Client secret. SafeRewind doesn't support the Public key / Private key option.
  2. Copy the Client ID.
  3. Under CLIENT SECRETS, copy the secret. Keep it somewhere safe until you've pasted it into SafeRewind.
  4. Find your Okta domain: click your name in the top-right corner of the Admin Console. The domain is shown under your username, for example acme.okta.com. Your issuer URL is that domain with https:// in front: https://acme.okta.com.
Don't copy the address from your browser's address bar. The Admin Console runs on acme-admin.okta.com, and that -admin address won't work as the issuer URL.

If your company signs in to Okta on a custom domain, such as https://login.acme.com, use that as the issuer URL instead.

4. Connect Okta in SafeRewind

Back on SafeRewind's Single sign-on page, under 2. Connect it:

  1. Issuer URL: paste your issuer URL, for example https://acme.okta.com.
  2. Client ID and Client secret: paste them from Okta.
  3. Email domain: enter the part of your team's work email addresses after the @, for example acme.com. Addresses on its subdomains, such as eu.acme.com, are included automatically.
  4. Click Connect.

SafeRewind checks the issuer URL with Okta before it saves anything. The client secret is stored encrypted and is never shown again.

5. Verify your domain

This step proves your company owns the email domain, so nobody else can set up SSO for it.

  1. Under 3. Verify your domain, SafeRewind shows a TXT record: a record name (like _saferewind-sso-….acme.com) and a record value.
  2. At your DNS provider (for example Cloudflare, Route 53 or GoDaddy), add a TXT record with exactly that name and value. Some providers add your domain to the name for you. If yours does, enter only the part before .acme.com.
  3. Back in SafeRewind, click Check now. DNS changes can take a few minutes to an hour to appear. If the check fails, wait a little and try again.

When the domain is verified, SSO is on. You can delete the TXT record afterwards if you want, but leaving it does no harm.

6. Try it

  1. Open SafeRewind's sign-in page in a private browser window.
  2. Click SSO, enter your work email and click Continue.
  3. Sign in to Okta. SafeRewind opens, signed in.

The Single sign-on page counts how many people have signed in with SSO.

What your team sees

  • New people on your domain who sign in with SSO join your organisation as members. If you have a free seat, they get it, so they can record right away. If you don't, an admin can give them one on the Members page.
  • People you invited get the role and seat from their invitation the first time they sign in with SSO.
  • People who already have a SafeRewind account with the same work email can keep their current sign-in method, or use SSO. Both lead to the same account.
  • The Chrome extension needs no change. It signs in through the website, so it uses SSO too.
Removing someone from the app in Okta stops them signing in with SSO, but doesn't remove them from your SafeRewind organisation. Remove them on the Members page too, which also frees their seat. Starting from the SafeRewind tile on the Okta dashboard isn't supported yet: people sign in from SafeRewind's sign-in page.

Replace the client secret

To rotate the secret without interrupting sign-ins:

  1. In Okta, open the app's General tab and click Generate new secret under CLIENT SECRETS. Okta keeps the old secret active alongside the new one.
  2. In SafeRewind, paste the new secret into New client secret and click Replace client secret.
  3. In Okta, deactivate and delete the old secret.

To use a different Okta app, client ID or issuer URL, click Remove identity provider in SafeRewind and connect again.

Troubleshooting

"No OpenID Connect settings were found" or "The identity provider calls itself …" The issuer URL is wrong. Use your Okta domain with https:// in front and nothing after it, such as https://acme.okta.com. If the message names an address, enter exactly that.

"Your identity provider doesn't accept a client secret" In the Okta app's General tab, set Client authentication to Client secret and save.

"Your company hasn't set up single sign-on with SafeRewind" The domain isn't verified yet, or the person typed an address on another domain. Finish step 5, then try again.

Okta says "User is not assigned to the client application" The person isn't in a group assigned to the SafeRewind app. In Okta, open the app's Assignments tab and assign them or one of their groups.

"Your company's sign-in page returned an address outside its own domain" Okta signed the person in with an email that isn't on your verified domain, for example a personal address in their Okta profile. Update their primary email in Okta.

"This address is already in another SafeRewind organisation" A person can belong to one SafeRewind organisation at a time. They need to leave the other organisation first.

Still stuck? Email eugen@getsaferewind.com with the message you see. Business plans include priority support.