- 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.

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.

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.

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.

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.

6
Require PKCE
Under Client Credentials, click Edit. For Proof Key for Code Exchange (PKCE), check Require PKCE as additional verification, and click Save.

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.

In E2B
1
Open the SSO page
In the E2B Console, open your workspace and go to Settings → SSO.

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.
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=.
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.

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.

6
Check the connection
The card shows CONFIGURED with the connection details. The connection isn’t tested yet, and SSO isn’t enforced.

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.

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.

2
Sign in with Okta
The page shows a single Sign in with <Connection name> button, here Sign in with Okta. Click it.

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.

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.

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.