Prerequisites
- A Portal. To create one, read Universal Portals Quickstart.
- To use the Management API, a Management API access token with the
read:portalsandupdate:portalsscopes.
Choose components
A Portal can use any mix of components, so you can build a personal account Portal, an Organization Portal, or both. Components fall into four groups:- Account components call the My Account API: User MFA Management and Passkey Management.
- Organization components call the My Organization API: Organization Details Edit and Domain Table.
- Form renders an Auth0 Form. Forms work in any Portal to collect or update information.
- Content and structure components arrange the page: Heading, Rich Text, Image, and Section.
Add pages and components
- Auth0 Dashboard
- Management API
1
Open the editor
Navigate to Auth0 Dashboard > Portals and open your Portal.
2
Add a page
Open Pages, select Add Page, and enter a Name and a Slug. The slug uses lowercase letters, numbers, and hyphens, and starts with a letter.
3
Add components
Open Components and drag a component onto the page, or select Section first and add components inside it. A section shows a title and a description above its components.
4
Change a component
Select a component on the page to open its settings, and then select Save.
Set the default page
The portal URL,https://YOUR_DOMAIN/portals/{slug}, opens the Portal’s default page. If the Portal has no default page, the URL shows “Page not found”.
- Auth0 Dashboard
- Management API
Navigate to Pages. Open the menu of the page that users should see first, and select Set as default page. The page shows a Home page label.
Add an Auth0 Form
Create an Auth0 Form to use with Universal Portals. Use the Form to collect information, such as a profile update or communication preferences.- Auth0 Dashboard
- Management API
1
Add the Form component
Open Components and drag Form into a section on your page.
2
Set the Form
Select the component. In Form ID, enter the ID of your Form. In Completion message, enter the message that appears after the user submits the Form. Select Save.
{{context.user.user_id}} is always available. To learn more, read Forms context variables.
If a Form sends identifiers to the browser for the user to select, such as a list of MFA factors, and your Flow then uses the selected value, verify in the Flow that the value belongs to the signed-in user. Compare it with {{context.*}} or with a list you fetch in a Flow action and store in {{vars.*}}.
If a Form updates users through the Management API, its Flow needs a Forms vault connection. Back the connection with a separate machine-to-machine application. Do not add the client_credentials grant to the portal application. To learn more, read Auth0 Vault Connections.
Arrange content
Group related components in a Section. A section shows a title and a description above its components, like a card, which makes a page easier to scan. Use Heading and Rich Text for text, and Image for brand assets such as a logo.Configure navigation
The sidebar shows links to portal pages or to external URLs.- Auth0 Dashboard
- Management API
1
Add an item
Open Navigation, select Add Item, and choose a link to a portal page or to an external URL.
2
Set the link
Enter a label, choose the page or enter the URL, and optionally enter an icon name. Select Add Item.
3
Reorder the items
Drag items to change their order.
user or shield. The sidebar logo comes from your tenant’s branding.
Apply branding
Portals use your tenant’s branding: logo, colors, and fonts. In an Organization context, the Portal uses that Organization’s branding. If Auth0 cannot load the Organization’s branding, the Portal uses your tenant’s branding.Add custom code to the head
Add HTML to the<head> of every portal page, for example to load a font or an analytics script.
- Auth0 Dashboard
- Management API
Open Portal Settings, and enter your HTML in Custom HTML injection in <head> under Custom code.
Publish and preview
In the visual editor, the top bar shows Unpublished changes until you select Publish. Preview opens the last published version of your Portal in a new tab, so publish before you preview.Next steps
Access Portals
Send users from your web or native application to the Portal.
Portal Components Library Reference
Look up component types, configuration limits, and scopes.