Enterprise login
Explore how you can implement enterprise authentication flows with SuperTokens.
Overview
SuperTokens covers enterprise authentication scenarios through the multi-tenancy feature. Tenants represent isolated user groups that can only access their specific data. Furthermore, each tenant can have different methods of logging in, configured by the tenant, or by you (the application developer).
For example, a SaaS application for a financial company may want to separate their users by the financial institution they represent. This would require a login screen that asks for a username and password, as well as the name of the tenant. The application would then route the user to their specific tenant, which could be a different database or a different collection of data within a database.
Features
Prerequisites
This feature is only available to paid users.
Getting started
The initial setup guide shows you how to create a tenant and configure authentication for it. After that, you have to implement the tenant discovery flow. Choose between the common domain login and subdomain login methods, based on your use case.
Before you explore the guides, read through the Important concepts page first. It explains how multi tenancy works in more detail.
Important concepts
Go through a reference guide that explains all the multi-tenancy related concepts that are specific to SuperTokens.
Initial setup
Create a new tenant and configure the login methods on it.
Implement common domain login
Allow tenants to login using the same domain.
Implement subdomain login
Allow tenants to login using different subdomains.
Customization
To adjust the functionality to fit your use case you can explore different sections from the documentation.