Authentication Providers
2 min read | Last updated :
Kisai supports a variety of authentication providers that can be setup for each realm. Below are the list of provider types that are supported on the platform.
Provider Type | Description | Template Variables |
---|---|---|
challenge | Password | |
magic | enable magic links for authentication | magic_link |
magicnumbers | enable magic link numbers | num_1, num_2, num_3, magic_link_1, magic_link_2, magic_link_3 |
otpsms | OTPs sent over SMS | otp |
otpemail | OTPs sent over email | otp |
oauth | OAuth based, needs additional config at Tenant level | |
goauth | Google OAuth based, needs additional config at Tenant level | |
recaptcha | ||
federation |
Below is the list of platform supported Multi factor authentication (MFA) providers.
MFA Type | Description |
---|---|
otpmfa | SMS OTP |
totpmfa | Time based OTP like Microsoft Authenticators |
hotpmfa | Hash based SMS OTP like Google Authenticatore Counter based |
webauthnmfa | Web Authentication |
Setting up providers
Providers required at a product level needs to be setup. Below are the required parameters
Parameter | Description |
---|---|
name | name of the provider |
type | provider type |
mfa | required to enable multi factor authentication |
Below is the sample providers.yaml file.
Example 1 - Setup basic authentication
Let us enable password as basic authentication provider for sweetnothings.
providers.yaml
Let’s test this by providing email and password in our API request.
URL
Request
Response
Example 2 - Setting up MFA
Let us enable multi factor authentication with OTP as a provider for sweetnothings.
providers.yaml
Let’s test this by providing password as the first step followed by OTP.
Step 1 : Request - Provide mobile and password
Response
Step 2 : Request - Provide OTP
Response
Example 3 - Setting up passwordless authentication
Let us set up passwordless authentication through magic link for sweetnothings.
Step 1 - Request
URL
Request
Response
Step 2 - Email with magic link
Click on the login button in the email.
On click, the user is authenticated and directed to the landing page of the application.