Benefits of B2B Connect — Enterprise
Why use B2B Connect - Enterprise? Whenever you set out to build products for B2B customers, you could build complex B2B identity tooling just to handle the foundational elements of onboarding and customer management. This work typically falls to a platform identity team that balances competing priorities. The result is constant pressure to make trade-offs across three structurally critical pillars:- Maintain rigorous security and interoperability.
- Deliver a flawless customer onboarding and lifecycle experience.
- Unlock and enable innovation for your core product.
Use cases
B2B Connect - Enterprise supports advanced B2B identity scenarios without the need for re-platforming, including the following use cases to:- Add enterprise SSO to an existing authorization server
- Use self-service onboarding for your enterprise customers
- Preserve your existing login experience and token issuance
- Enrich application identity tokens with enterprise claims
- Route users to enterprise IdPs based on verified email domain
- Delegate identity administration to your B2B customers
- Support IPSIE-aligned session management and Universal Logout
How it works
Auth0 B2B Connect - Enterprise sits between your application’s authorization server and your customers’ enterprise identity providers:- The user initiates login in your application.
- Your application sends an authentication request to your authorization server using its existing flow.
- Your authorization server identifies the user as a B2B Connect - Enterprise user and routes the request to Auth0.
- Auth0 B2B Connect - Enterprise sends an authentication request to the user’s enterprise IdP (such as Okta, Microsoft Entra ID, Google Workspace, or PingFederate) using SAML or OpenID Connect (OIDC).
- The user authenticates with their corporate credentials at the enterprise IdP.
- The enterprise IdP returns a SAML assertion or OIDC token to Auth0 B2B Connect - Enterprise.
- Your authorization server returns its own token to your application.
- Your application validates the token and bootstraps its own session.
- The user is granted access to your application.
Integrate B2B Connect - Enterprise
You can integrate B2B Connect - Enterprise with the Create B2B Connect Integration wizard in Auth0 Dashboard, which establishes the topology. Your choice at Step 1 (Name and Type) in the wizard determines your entire integration path.
Custom authorization server
Use this type when you have built your own authorization server and it can act as a relying party to Auth0 over OIDC or SAML. Enterprise users are redirected from your auth server to Auth0; non-enterprise users remain entirely on your auth server.- Name and Type: Name the integration, select Custom Authorization Server.
- Authentication: Select OIDC (recommended) or SAML.
- Configure Auth0 as IdP: Provide values from your auth server so Auth0 can act as its identity provider:
- OIDC: Issuer URL (expand Show individual endpoints if your auth server does not support issuer discovery to get the Authorization URL, Token URL, Client ID, and Client Secret), and your Application Callback URL.
- SAML: Issuer, Identity Provider SHA1 Fingerprint, Identity Provider Login URL, Auth0 Certificate or IdP Metadata, and your Application Callback URL.
- Integration created: Proceed to set up Organizations and Self-Service Enterprise Configuration (SSEC) to onboard your first B2B customer.
Third-party managed authorization server
Use this type when you are using a purchased or managed authorization server. The topology and wizard flow are identical to Type 1. Refer to your auth server provider’s documentation for configuring Auth0 as an identity provider.- Amazon Cognito
- PingIdentity PingOne
- Ory
- Keycloak
- Transmit Security
- Name and Type: Name the integration, select Third-party Managed Authorization Server.
- Authentication Protocol: Select OIDC (recommended) or SAML.
- Configure Auth0 as IdP: Same OIDC or SAML field set as Type 1. Register Auth0 as the upstream identity provider in your managed auth server.
- Integration created: Proceed to set up Organizations and SSEC.
Application
Use this type when your application integrates with Auth0 directly, without a separate authorization server. The application embeds the Auth0 SDK and owns the session outright. This type is OIDC only and does not include a protocol selection step.- Name and Type: Name the integration, select Application.
- Configure Integration: Enter your Allowed Callback URLs. Auth0 redirects users to these URLs after authentication. At least one URL is required.
- Continue Setup: Integration created. Follow the Quickstart to add a Login with SSO button to your application and configure Organizations and SSEC.
Configure customer onboarding
Self-Service Enterprise Configuration (SSEC) gives your B2B customers a guided flow to configure their enterprise IdP and claims mappings without requiring direct support from your team. To configure customer onboarding:- In Auth0 Dashboard, navigate to B2B Connect. Under the Organizations tab, 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 SSEC Profile. Select Continue.
- Choose how you want to generate SSEC tickets:
- API Integration
- Auth0 Dashboard
- Select Done.
For information on the maximum number of SSEC profiles you can create per tenant, read Self-Service Enterprise Configuration.
Create or configure an Auth0 Organization
Once you finish the customer onboarding setup, associate an Auth0 Organization with each self-service ticket request.Per application access
B2B integrations automatically use per-application access for Auth0 Organizations. This means that when a user logs in, only enterprise connections that meet both of the following conditions are surfaced:
- The connection is enabled on the Organization.
- The Organization has been granted access to the B2B integration application.
Create a new Auth0 Organization
- Select +Create Organization or for API integration instructions, select the
<>for configuration details. - Provide a Name for end users.
- Optional. Provide a Display Name. If omitted, the Display Name defaults to the Organization name.
- To skip onboarding ticket creation, select Create.
- To create an onboarding ticket for this Organization:
- Select the checkbox, then select Create and Continue.
- Add a Connection Name and Display Name.
- Select Create and Continue.
- Copy the ticket URL and share it with your B2B customer. Select Copy and Close.
- Your customer administrator launches the self-service assistant via the ticket URL and follows the steps to configure their connection and complete domain verification.

Configure an existing Auth0 Organization
- In B2B Connect - Enterprise, select the icon of the Organization you want to configure from the list.
- Add a Connection Name and a Display Name.
- Select Create and Continue.
- Copy the ticket URL and share it with your B2B customer. Select Copy and Close.
- Your customer admin launches the self-service assistant via the ticket URL and follows the steps provided to configure their connection and complete domain verification.
Configure lifecycle events
Use Event Streams to configure real-time notifications for lifecycle events, so you can keep your downstream identity store in sync with changes in Auth0. You can subscribe to events for users, Organizations, and enterprise connections. To configure lifecycle events:- In Auth0 Dashboard, navigate to Event Streams.
- Select + Create Event Stream.
- Choose your destination: Webhooks, AWS EventBridge, or Auth0 Actions.
- Enter your configuration and choose the event categories you want to receive:
- User events:
[user.created](/docs/events/user/user.created),[user.deleted](/docs/events/user/user.deleted),[user.updated](/docs/events/user/user.updated) - Organization events:
[organization.created](/docs/events/organization/organization.created),[organization.deleted](/docs/events/organization/organization.deleted),organization.member.*,[organization.updated](/docs/events/organization/organization.updated) - Connection events:
[connection.created](/docs/events/connection/connection.created),[connection.deleted](/docs/events/connection/connection.deleted),[connection.updated](/docs/events/connection/connection.updated)
- User events:
- Select Save.
Integrate Auth0 SDKs
Auth0 provides SDKs for integrating B2B Connect - Enterprise into your application or authorization server.Supported SDKs
Quickstarts for each SDK are available in the Quickstart tab of your B2B Integration.
Integration pattern
B2B Connect - Enterprise uses a stateless passthrough model. Auth0 handles the SSO round trip to the enterprise IdP and returns an enriched ID Token; your existing authorization server or application remains the session authority. This differs from a standard Auth0 integration in several ways:- Stateless mode: Server SDKs omit the session store (
stateStore/state_store). The callback method (completeInteractiveLogin/complete_interactive_login) returns user claims and the ID token directly. Read identity from the return value rather than getSession(). - No refresh token: B2B Connect - Enterprise does not issue refresh tokens. Set
scopetoopenid profile emailand omitoffline_access. - Organization required: Pass
organizationto/authorizeto bind the login to the correct Auth0 Organization and enable silent passthrough to the enterprise IdP. Validate the org_id claim in the returned token before trusting the login. - Federated logout: When logging out, redirect to Auth0’s
/v2/logoutwithfederated: trueto terminate the enterprise IdP session. Without this, the IdP session stays active.
Login with SSO
UseloginWithRedirect (SPA SDKs) or startInteractiveLogin (server SDKs) to initiate the authentication flow. Pass login_hint (the user’s email), connection, and organization in authorizationParams. Quickstarts in the Quickstart tab provide complete integration instructions for each SDK.
Domain-based user routing (Webfinger).
B2B Connect - Enterprise exposes a standard Webfinger endpoint you can use to detect whether a user’s email domain is managed by Auth0. Before using the Webfinger endpoint, the tenant admin must enable the Local Resource Discovery flag. Navigate to Tenant Settings > Advanced and enable Local Resource Discovery.