Перейти до основного вмісту

Add providers to an application

This guide explains how to add providers to an application, so that users can sign in with an external identity provider and receive codes by email or SMS, and how to choose when Casdoor uses each provider.


Learning outcomes​

  • Add a provider to an application.
  • Choose the rule that decides when Casdoor uses an email or SMS provider.

What you need​


Add a provider​

  1. In the Casdoor admin console, open the edit page of the application and go to the Providers tab.

  2. Add a row and select the provider.

    Provider selection in the Providers table

  3. For an email or SMS provider, select the rule that decides when Casdoor uses it. See Provider rules.

    Rule selection of a provider

  4. For an SMS provider, select the country codes that it serves.

    Country code selection of an SMS provider

  5. Save the application.

For the other columns of the table, such as Can sign up and Binding rule, see the Application settings reference.

Provider rules​

ПравилоCasdoor uses the provider to
AllDo everything below
SignupSend the verification code during sign-up
LoginSend the code for sign-in with a verification code
Forget PasswordSend the reset code or link on the forgot-password page. For reset links, see Password reset link
Reset PasswordSend the code when the user changes the password
Set MFASend the code when the user sets up multi-factor authentication (MFA)
MFA AuthSend the code for the second factor at sign-in. See Multi-factor authentication
Magic linkSend the sign-in link for sign-in with a magic link

To use different providers in different situations, add each provider with its own rule. For example, one SMS provider for sign-in and another one for MFA.

See also​