Skip to main content
This guide connects Okta to an E2B workspace with OpenID Connect (OIDC). You create an app integration in Okta, add it as a connection in E2B, and then test sign-in. For how SSO works in E2B, see Single sign-on (SSO). You need:
  • Owner access to an E2B team workspace with the SSO add-on. See Requirements.
  • Admin access to your Okta organization.
  • Access to your email domain’s DNS settings.

In Okta

1

Create an app integration

In the Okta Admin Console, go to Applications → Applications and click Create App Integration.
The Applications page in the Okta Admin Console with the Create App Integration button
2

Choose OIDC and Web Application

The Create and deploy private app integrations dialog opens on the Okta Integration Wizard tab, which can’t create OIDC integrations. Switch to the Classic experience tab, select OIDC - OpenID Connect as the sign-in method and Web Application as the application type, then click Next.
The Classic experience tab of the Create and deploy private app integrations dialog with OIDC - OpenID Connect and Web Application selected
3

Fill in the general settings

On the New Web App Integration form:
  • Client definition: choose Use Okta-generated client ID. The rest of the form appears after you choose.
  • App integration name: a name your users will recognize, for example E2B.
  • Proof of possession: leave DPoP unchecked.
  • Grant type: under Core grants, Authorization Code is already checked. Keep it.
  • Sign-in redirect URIs: enter the Callback URL shown on your workspace’s SSO page in E2B. In production, it’s https://auth.e2b.dev/self-service/methods/oidc/callback.
  • Sign-out redirect URIs: optionally remove the default entry. E2B doesn’t use it.
The New Web App Integration form with Use Okta-generated client ID selected, the app integration name E2B, Authorization Code checked under Core grants, and the E2B callback URL as the sign-in redirect URI
4

Choose who can use the app and save

Under Controlled access, choose who can use the app. To assign people afterwards, as this guide does, choose Skip group assignment for now. Click Save.
The Controlled access section with Skip group assignment for now selected and the Save button
5

Copy the client ID and client secret

On the app’s General tab, copy the Client ID under Client Credentials, and the secret under CLIENT SECRETS with its copy icon. You enter both in E2B later.
The General tab showing the Client ID under Client Credentials and a masked secret with a copy icon under CLIENT SECRETS
6

Require PKCE

Under Client Credentials, click Edit. For Proof Key for Code Exchange (PKCE), check Require PKCE as additional verification, and click Save.
The Client Credentials section in edit mode with Require PKCE as additional verification checked
7

Assign people

On the app’s Assignments tab, click Assign → Assign to People. In the Assign E2B to People dialog, click Assign next to each person, then Save and Go Back on the profile form that opens. Click Done when you’re finished. You can also use Assign to Groups. Only people assigned to the app can sign in to E2B through Okta.
The app's Assignments tab with a table listing the people assigned to the app

In E2B

1

Open the SSO page

In the E2B Console, open your workspace and go to Settings → SSO.
The Workspace SSO page in the E2B Console with the Domain, Single sign-on, Just-in-time provisioning, and Require SSO cards
2

Add your domain

On the Domain card, enter the email domain your team uses, for example your-company.com, and click Add domain. Enter the root domain only, without https://, a subdomain, or a path.
The Domain card with an email domain entered and the Add domain button
3

Publish the TXT record

The domain shows as PENDING with a DNS record. At your DNS provider, add a TXT record with the name _e2b-challenge.<your-domain> and the value shown on the card, which starts with e2b-domain-verification=.
The Domain card showing a PENDING domain with the TXT record type, name, and value to publish
4

Verify the domain

Click Check verification. When E2B finds the record, the domain shows as VERIFIED. DNS changes can take a few minutes, so if the check doesn’t pass right away, wait and try again.
The Domain card showing the domain as VERIFIED
5

Add the Okta connection

On the Single sign-on card, fill in:
  • Connection name: shown on the sign-in button, for example Okta, which gives Sign in with Okta.
  • Issuer URL: your Okta organization URL, for example https://your-company.okta.com, without /oauth2/default.
  • Client ID and Client secret: the values you copied from Okta.
Click Save connection. Saving turns off email invitations for the workspace and revokes pending ones.
The Single sign-on card filled in with a connection name, Okta issuer URL, client ID, and a masked client secret
6

Check the connection

The card shows CONFIGURED with the connection details. The connection isn’t tested yet, and SSO isn’t enforced.
The Single sign-on card showing a CONFIGURED connection with its name, Issuer URL, Client ID, Callback URL, and Edit and Remove buttons
7

Turn on just-in-time provisioning

Turn on Just-in-time provisioning so people on your verified domain join the workspace as Viewers the first time they sign in with Okta. Leave Require SSO off for now: you can turn it on only after you’ve signed in with SSO yourself. See Require SSO.
The Just-in-time provisioning and Require SSO cards with their toggles

Test sign-in

A new member

Use an Okta user who is assigned to the app and doesn’t have an E2B account yet.
1

Enter the work email

Open the E2B sign-in page, enter the work email, and click Continue.
The E2B sign-in page with a work email entered and the Continue button
2

Sign in with Okta

The page shows a single Sign in with <Connection name> button, here Sign in with Okta. Click it.
The E2B sign-in page showing a single Sign in with Okta button
3

Authenticate in Okta

Sign in on the Okta page. Depending on your Okta policies, Okta may ask the person to set up multi-factor authentication. You control this in Okta.
The Okta sign-in page
4

Confirm the email address

The first time someone signs in with SSO, E2B emails them a one-time code. They enter it on the Verify your email page and click Continue. Later sign-ins skip this step. See Email confirmation.
5

Land in E2B

The person returns to E2B, signed in. With just-in-time provisioning on, they are now a Viewer in the workspace. A workspace owner can change their role on the members page.
The E2B Console after signing in with Okta

An existing E2B account

Use an Okta user whose email already has an E2B account, for example one created with a password or with Google. Sign in as above: enter the work email, click Continue, click Sign in with Okta, and sign in at Okta. E2B then shows Link your account. The person signs in once with the method they used before, for example by choosing Password and clicking Sign in with password. If they forgot their password, they can use account recovery. From then on, Okta signs them in directly.
The Link your account screen saying the email already has an E2B account and asking the person to sign in to it once
The email in Okta must match the email on the existing E2B account. If it doesn’t, E2B creates a separate account. See Existing E2B accounts.

Require SSO

After you’ve signed in with Okta yourself, you can turn on Require SSO on the SSO page. Members who don’t sign in with SSO are then suspended until they do. See Require SSO.