How to enable B2B Saas Sign-up

Hi @masa1,

Welcome to the Auth0 Community!

We are working on a sample SaaS application that will outline this flow.

In the meantime, we recommend using a separate application for end-user registration and login. This approach helps avoid the confusing dialog box that appears when “Both” is selected under Organizations’ Types of Users.

For example:

  • Signup app: Set Organizations to “Individuals.”
  • Login app: Set Organizations to “Business Users.”

After users sign up, have them verify their email address before allowing them to register an organization. This will help prevent bots from populating the tenant with fake users/organizations.

To register an organization, use the Management API’s Create an Organization endpoint. Then, assign the user to the organization with an Admin-type role.

Next, silently authenticate the user into the Login application and allow Admin users to invite others with different roles using the Management API.

Alternatively, you could redirect the user to the Login application after they sign up.

Please let me know if you have any questions.

Cheers,
Rueben

1 Like