How it works
- An enterprise user enters their email address in your application.
- Your application calls Auth0’s domain discovery endpoint (WebFinger) with the user’s email domain. If the domain is managed through Enterprise Connect, the user proceeds through the Auth0 SSO flow. If not, your application routes the user through your existing login path — non-enterprise users are unaffected.
- Your application redirects the user to Auth0 with the enterprise connection name, organization ID, and email as a login hint.
- Auth0 sends an authentication request to the enterprise identity provider (IdP) using SAML or OIDC.
- The user authenticates with their corporate credentials at the enterprise IdP.
- The enterprise IdP returns a SAML assertion or OIDC token to Auth0.
- Auth0 enriches an ID token with enterprise claims mapped via a User Attribute Profile — including
org_id,org_name, and any custom claims from the IdP — and returns it to your application. - Your application validates the
org_idclaim and uses the token claims to bootstrap its own session. Auth0 writes no session. Your authorization server remains the session authority. - The user is granted access to your application.
Before you start
Auth0 Enterprise Connect uses Self-Service Enterprise Configuration and Auth0 Organizations to help your B2B customers onboard and manage users.Before you enable Enterprise Connect:
- Create an Auth0 Organization or multiple Organizations to use with Enterprise Connect
- Review Self-Service Enterprise Configuration
Enable Auth0 Enterprise Connect
You can enable Enterprise Connect when you create a new tenant or configure an existing tenant through the Auth0 Dashboard or Auth0 SDKs.Create a new tenant
From your Auth0 Dashboard instance, select the tenant drop-down menu. Choose Create Tenant.- Select your agreement as Custom or Personal Account.
- Give the tenant a unique name under Tenant Domain. Your tenant name cannot be changed.
- Under Tenant Type, select Enterprise Connect Tenant.
- Choose the region for your tenant.
- Choose the environment type.
- Select Save.
Update an existing tenant
Use the following guidelines to enable Enterprise Connect on an existing tenant.- Auth0 Dashboard
- Auth0 SDKs
First, set up your Enterprise Connect integration:
- Navigate to Auth0 Dashboard > Applications > B2B Integrations.
- Select Enterprise Connect Integration.
- In the editor, add an integration name for your existing authorization server. This name cannot be changed.
- Select the integration type: a customer authorization server you’ve built, or a managed authorization server from a third-party such as Keycloak.
- Select a protocol: OpenID Connect (OIDC) or SAML protocols.
- Add the provided endpoint(s) to your IdP’s configuration to make Auth0 an OIDC identity provider.
- Add the callback URL from your application so Auth0 can route your users after authentication.
- Select Done.
- In Enterprise Connect, select Set Up.
- Enter a name for your Self-Service Enterprise Configuration Profile.
- Optional. Add a description.
- Auth0 creates a User Attribute Profile (UAP) named after your Self-Service Enterprise Configuration Profile name. Select Continue.
- Choose how you want to generate Self-Service Enterprise Configuration tickets:
- API Integration: Programmatically generate tickets with the Management API.
- Auth0 Dashboard: Manually generate tickets in Auth0 Dashboard.
- When you create a new Organization, provide a name for end users. Then provide a Display Name.
- Select the checkbox to create a self-service onboarding ticket for this Organization.
- Select Create and Continue.
- Follow the next steps when an Organization already exists.
- Select the Organization from the list.
- Add a Connection Name.
- Add a Display Name.
- Select Create and Continue.
- You return to the Enterprise Connect main page with a new B2B Integration.