SsoProviderCreate component provides a unified interface to add new Single Sign-On providers.
- React
- Next.js
- shadcn
Setup requirements
Auth0 Configuration Required—Ensure your tenant is configured with the
My Organization API. View setup guide
→
Installation
Running either command also installs the @auth0/universal-components-core
dependency for shared utilities and Auth0 integration.
Get started
Full integration example
Full integration example
Props
Required props
Required props are fundamental to the component’s operation. ForSsoProviderCreate, there is only one core prop which controls what happens after a provider is successfully created.
| Prop | Type | Description |
|---|---|---|
createAction | ComponentAction<…> | Required. Controls post-creation flow. |
ComponentAction<CreateIdentityProviderRequestContentPrivate, IdentityProvider>
The createAction prop is required because it controls where users are navigated to after a provider is successfully created. Without this, the component wouldn’t know what to do next.
Properties:
disabled—Disable the create button (for example, while another operation is in progress)onBefore(data)—Runs before the provider is created. Returnfalseto prevent creation (for example, to show a confirmation dialog first).onAfter(data, result)—Runs after the provider is successfully created. Use this to navigate to another page or track the event.
Display props
Display props control how the component renders without affecting its behavior. Use these to hide sections or enable read-only mode.| Prop | Type | Description |
|---|---|---|
readOnly | boolean | Disable all form inputs. Default: false |
hideHeader | boolean | Hide the header section. Default: false |
Action props
Action props handle user interactions beyond the core creation flow. These control navigation and wizard step behavior.| Prop | Type | Description |
|---|---|---|
backButton | Object | Back button configuration. |
onNext | Function | Step navigation callback. |
onPrevious | Function | Step navigation callback. |
{ icon?: LucideIcon; onClick: (e: MouseEvent) => void }
Configures the back button in the component header. Use this to navigate back to your providers list or the previous page.
Properties:
icon—Custom Lucide icon component (optional, defaults to ArrowLeft)onClick—Click handler for navigation
onNext / onPrevious Type:
(stepId: string, values: Partial<SsoProviderFormValues>) => boolean
Control wizard step navigation. These callbacks are called when the user clicks Next or Previous. Return false to prevent navigation.
Use cases:
- Validate step data before proceeding
- Log analytics for step completion
- Conditionally skip steps
stepId—Current step identifier ("provider_select","provider_details","provider_configure")values—Current form values
Customization props
Customization props let you adapt the component to your brand, locale, and validation requirements without modifying source code.| Prop | Type | Description |
|---|---|---|
schema | SsoProviderSchema | Field validation rules. |
customMessages | Partial<SsoProviderCreateMessages> | i18n text overrides. |
styling | ComponentStyling<SsoProviderCreateClasses> | CSS variables and class overrides. |
oidc, samlp, waad, google-apps, adfs, pingfederate, or okta). All fields support regex, errorMessage, minLength, maxLength, and required.
Available Schema Fields
Available Schema Fields
Provider Details
name,displayName
okta.domain,okta.client_id,okta.client_secret,okta.icon_url,okta.callback_url
adfs.meta_data_source,adfs.meta_data_location_url,adfs.adfs_server,adfs.fedMetadataXml
google-apps.domain,google-apps.client_id,google-apps.client_secret,google-apps.icon_url,google-apps.callback_url
oidc.type,oidc.client_id,oidc.client_secret,oidc.discovery_url,oidc.isFrontChannel
pingfederate.signatureAlgorithm,pingfederate.digestAlgorithm,pingfederate.signSAMLRequest,pingfederate.metadataUrl,pingfederate.signingCert,pingfederate.idpInitiated,pingfederate.icon_url
samlp.meta_data_source,samlp.single_sign_on_login_url,samlp.signatureAlgorithm,samlp.digestAlgorithm,samlp.protocolBinding,samlp.signSAMLRequest,samlp.bindingMethod,samlp.metadataUrl,samlp.cert,samlp.idpInitiated,samlp.icon_url
waad.domain,waad.client_id,waad.client_secret,waad.icon_url,waad.callback_url
customMessages Customize all text and translations. All fields are optional and use defaults if not provided.
Available Messages
Available Messages
header—Component header
title,back_button_text
title,description
title,descriptionfields.name—label,placeholder,helper_text,errorfields.display_name—label,placeholder,helper_text,error
title,description,guided_setup_button_textfields.okta—Okta fieldsfields.adfs—ADFS fieldsfields.google-apps—Google Workspace fieldsfields.oidc—OIDC fieldsfields.pingfederate—PingFederate fieldsfields.samlp—SAML fieldsfields.waad—Azure AD fields
general_error,provider_create_success
styling Customize appearance with CSS variables and class overrides. Supports theme-aware styling.
Available Styling Options
Available Styling Options
Variables—CSS custom properties
common—Applied to all themeslight—Light theme onlydark—Dark theme only
SsoProviderCreate-headerSsoProviderCreate-wizardProviderSelect-rootProviderDetails-rootProviderConfigure-root
Advanced customization
Available hooks
These hooks provide the underlying logic without any UI. Use them to build completely custom interfaces while leveraging the Auth0 API integration.| Hook | Description |
|---|---|
useSsoProviderCreate | Provider creation logic and API integration |