On this page

Add a sign-up form to your web app

Implement a sign-up form for your web app, reducing onboarding friction and accelerating user acquisition.

Introduction

You have a web-based app that uses Okta as the identity provider and user store. To allow users to create their own accounts in your app, implement a Self-Service Registration (SSR) flow. This guide helps you design and configure a registration experience that securely and efficiently onboards your users.

Before you start, think about whether you need different registration experiences for different types of users, like customers, partners, and drivers. This guide helps you plan your sign-up process for each and then helps you configure the right policies in Okta to make it happen.

Learn

Learn the basics that you need to lay the foundations for your work:

Plan

Plan for and develop the best end user SSR experience:

Understand the default SSR flow and how you can customize it.

Build

With your registration plan in place, you can now configure the necessary components in Okta. This process involves three main stages:

  • Set up the foundational policies that define the SSR experience, such as what information users must provide and which authentication factors they need to enroll.
  • Add a way for users to register. The recommended approach is to redirect them to an Okta-hosted enrollment form, which you can customize to match your brand.
  • Test the end-to-end flow to ensure that new user accounts are created correctly and assigned to the right groups with the proper attributes.

Enable and configure the basic self-registration process

Configure any user groups in Universal Directory, then create the policies that you need to configure your app's SSR experience:

Add a way for users to register an account

The simplest and Okta-recommended way for users to create an account is to redirect them to an Okta-hosted registration page. This page displays the Okta Sign-In Widget, which acts as an enrollment form that you can customize to reflect your brand.

Test the registration flow

Remember to test that your policies and customizations created and onboarded the users correctly.

  • Test the registration flow for each account type. Ensure that users are created in Universal Directory with the correct values in their user profiles and assigned to the correct user groups.
  • Test that your branding and email text changes work as expected.

Congratulations. Your app now allows users to create their own accounts. These accounts are stored and assigned the correct types, roles, groups, and attributes in Universal Directory. The registration and vetting process is now customized to match your needs with policies, scripts, and inline hooks. The user registration experience is smooth and not onerous.

Go deeper into how Universal Directory handles users:

Go deeper into the policies that control the sign-in process:

Okta recommends using an Okta-hosted Sign-In Widget for SSR. However, embedding the widget in your own page is also possible and allows for greater customization.