Preview of the SSO Provider Edit component
Setup Requirements
Auth0 Configuration Required - Ensure your tenant is configured with the
My Organization API. View setup guide
→
Installation
Running the shadcn command also installs the @auth0/universal-components-core
dependency for shared utilities and Auth0 integration.
Quick Start
Full integration example
Full integration example
While this example uses a React SPA, the prop configurations (schema, customMessages, styling, etc.) apply equally to Next.js and shadcn setups.
Props
Core Props
Core props are fundamental to the component’s operation.SsoProviderEdit requires the provider ID to load and edit the correct provider.
| Prop | Type | Description |
|---|---|---|
providerId | string | Required. The SSO provider ID to edit. |
Display Props
Display props control how the component renders without affecting its behavior.| Prop | Type | Description |
|---|---|---|
hideHeader | boolean | Hide the header section. Default: false |
Action Props
Action props handle user interactions across the three tabs. Each tab has its own set of actions organized undersso, provisioning, and domains props.
backButton
Type:{ icon?: LucideIcon; onClick: (e: MouseEvent) => void }
Configures the back button in the component header. Use this to navigate back to your providers list.
Properties:
icon- Custom Lucide icon component (optional, defaults to ArrowLeft)onClick- Click handler for navigation
SSO Tab Actions
Thesso prop configures actions for the SSO settings tab. This tab manages the provider’s authentication configuration.
sso.updateAction
Type:ComponentAction<IdentityProvider, IdentityProvider>
Controls saving changes to provider configuration (client ID, secrets, certificates, etc.).
Properties:
disabled- Disable the save buttononBefore(provider)- Called before update. Returnfalseto cancel.onAfter(provider, result)- Called after successful update.
sso.deleteAction
Type:ComponentAction<IdentityProvider>
Controls permanent deletion of the provider from your Auth0 tenant.
Example:
sso.removeFromOrganizationAction
Type:ComponentAction<IdentityProvider>
Controls removing the provider from the organization without deleting it.
Example:
Provisioning Tab Actions
Theprovisioning prop configures actions for the SCIM provisioning tab. This tab manages automated user provisioning via SCIM protocol.
| Action | Type | Description |
|---|---|---|
createAction | ComponentAction<IdentityProvider, CreateIdPProvisioningConfigResponseContent> | Enable SCIM provisioning. Details |
deleteAction | ComponentAction<IdentityProvider> | Disable SCIM provisioning. Details |
createScimTokenAction | ComponentAction<IdentityProvider, CreateIdpProvisioningScimTokenResponseContent> | Generate SCIM token. Details |
deleteScimTokenAction | ComponentAction<IdentityProvider> | Revoke SCIM token. Details |
provisioning.createAction
Type:ComponentAction<IdentityProvider, CreateIdPProvisioningConfigResponseContent>
Enables SCIM provisioning for the provider. Once enabled, you can generate a SCIM token for your identity provider to use.
Example:
provisioning.deleteAction
Type:ComponentAction<IdentityProvider>
Disables SCIM provisioning and removes all provisioning configuration.
Example:
provisioning.createScimTokenAction
Type:ComponentAction<IdentityProvider, CreateIdpProvisioningScimTokenResponseContent>
Generates a new SCIM bearer token for your identity provider to authenticate with Auth0.
Example:
provisioning.deleteScimTokenAction
Type:ComponentAction<IdentityProvider>
Revokes the current SCIM token. The identity provider will no longer be able to sync users until a new token is generated.
Example:
Domains Tab Actions
Thedomains prop configures actions for the domains tab. This tab manages verified domains associated with the provider for automatic user routing.
| Action | Type | Description |
|---|---|---|
createAction | ComponentAction<Domain> | Add a domain. Details |
verifyAction | ComponentAction<Domain> | Verify domain ownership. Details |
deleteAction | ComponentAction<Domain> | Delete a domain. Details |
associateToProviderAction | ComponentAction<Domain, IdentityProvider | null> | Associate domain to provider. Details |
deleteFromProviderAction | ComponentAction<Domain, IdentityProvider | null> | Remove domain from provider. Details |
domains.createAction
Type:ComponentAction<Domain>
Controls adding new domains to the organization from within the provider edit interface.
Example:
domains.verifyAction
Type:ComponentAction<Domain>
Controls domain verification via DNS TXT record.
Example:
domains.deleteAction
Type:ComponentAction<Domain>
Controls domain deletion.
Example:
domains.associateToProviderAction
Type:ComponentAction<Domain, IdentityProvider | null>
Associates a verified domain with this SSO provider for automatic user routing.
Example:
domains.deleteFromProviderAction
Type:ComponentAction<Domain, IdentityProvider | null>
Removes a domain’s association with this provider.
Customization Props
Customization props let you adapt the component to your brand, locale, and validation requirements without modifying source code.schema
Set custom validation rules for provider and domain fields.Available Schema Fields
Available Schema Fields
All schema fields support:
regex, errorMessage, minLength, maxLength, requiredprovider.* - Provider configuration fields by strategy- Common:
name,displayName - Strategy-specific fields (same as SsoProviderCreate)
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
sso,provisioning,domains
title,descriptionfields.*- Form field labels by strategyactions.save_button_text,actions.delete_button_textdelete_modal.*,remove_modal.*
title,descriptionscim_endpoint.label,scim_token.labelactions.enable_button_text,actions.disable_button_textactions.generate_token_button_text,actions.revoke_token_button_text
title,description- Same structure as DomainTable messages
provider_update_success,provider_delete_successprovisioning_enable_success,provisioning_disable_successscim_token_create_success,scim_token_delete_success- Domain-related notifications
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
SsoProviderEdit-headerSsoProviderEdit-tabsSsoProviderEdit-ssoTabSsoProviderEdit-provisioningTabSsoProviderEdit-domainsTab
Advanced Customization
TheSsoProviderEdit component is composed of smaller subcomponents and hooks. You can import them individually to build custom provider editing workflows if you use shadcn.
Available Subcomponents
For advanced use cases, you can import individual subcomponents to embed specific tabs or sections in different contexts.| Component | Description |
|---|---|
SsoProviderSsoTab | SSO configuration form |
SsoProviderProvisioningTab | SCIM provisioning management |
SsoProviderDomainsTab | Domain association management |
ProviderConfigureFields | Dynamic form fields by strategy |
ScimTokenDisplay | SCIM token display with copy functionality |
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 |
|---|---|
useSsoProviderEdit | Provider loading and update logic |
useSsoProviderProvisioning | SCIM provisioning management |
useSsoProviderDomains | Domain association management |