Casdoor utilizes providers to offer third-party services for the platform. In this chapter, you will learn how to add providers to Casdoor.
What We Have
Currently, we have six types of providers:
Casdoor allows users to sign in through other OAuth applications. You can add GitHub, Google, QQ, and many other OAuth applications to Casdoor. For more details, please refer to the OAuth section.
Casdoor sends SMS to users when they want to verify their phone numbers. SMS providers are used to send SMS in Casdoor.
Email providers are similar to SMS providers.
Casdoor allows users to store files using the local file system or cloud OSS services.
Casdoor can add payment providers, which will be used to add payment methods to products on the product page. Currently, the supported payment providers include Alipay, WeChat Pay, PayPal, and GC.
Casdoor supports configurable captcha in user flows. Currently, the supported captcha providers include Default Captcha, reCAPTCHA, hCaptcha, Aliyun Captcha, and Cloudflare Turnstile.
How to Configure and Use
Providers have different scopes, which are determined by the creator. Only Administrators have the permission to add and configure providers. There are two types of Administrators in Casdoor:
Global Administrator: All users under the
built-inorganization and the users who enable
IsGlobalAdmin. The providers created by the Global Administrator can be used by all applications.
Organization Administrator: Users who enable
IsAdmin. The providers created by the Organization Administrator can only be used by the applications under the organization (under development...).
Add to Application
Follow the steps below to add providers to your application. Note that you cannot use the provider in your application until you have added it.
Go to the application edit page and add a new provider row.
Select a provider that you want to add to the application. You will see all the providers that the application can use.
Finally, save the configuration. You can now try using the provider in your application.