概述
Casdoor uses providers to offer third-party services for the platform. 在本章中,您将学习如何向Casdoor添加提供商。
我们拥有的
Currently, we have eight types of providers:
OAuth 提供商
允许用户通过其他 OAuth 应用程序登录。 您可以将GitHub,Google,QQ等许多其他OAuth应用程序添加到Casdoor。 For more details, refer to the OAuth section.
短信提供商
Casdoor sends SMS messages to users when they need to verify their phone numbers. SMS providers are used to send SMS messages in Casdoor.
电子邮件提供商
电子邮件提供者与短信提供者类似。
存储提供商
Casdoor允许用户使用本地文件系统或云OSS服务存储文件。
支付提供商
Casdoor 可以添加付款提供者,用于在产品页面上添加付款方法。 目前,支持的支付提供商包括支付宝,微信支付,PayPal和GC。
验证码提供商
Casdoor支持在用户流程中配置验证码。 目前,支持的验证码提供商包括默认验证码,reCAPTCHA,hCaptcha,阿里巴巴云验证码,以及Cloudflare Turnstile。
ID Verification Providers
Casdoor supports identity verification for users through ID Verification providers. Users can verify their real-world identity by submitting ID card information, which is validated through third-party verification services like Jumio.
MFA Providers
Casdoor supports external authentication servers for multi-factor authentication. Currently supports RADIUS servers for authenticating users as a second factor during login.
如何配置和使用
范围
Providers have different scopes determined by their creator. Only Administrators have permission to add and configure providers. Casdoor中有两种类型的管理员:
Global Administrator: All users under the
built-inorganization and users who have enabledIsGlobalAdmin. Providers created by Global Administrators can be used by all applications.Organization Administrator: Users who have enabled
IsAdmin. Providers created by Organization Administrators can only be used by applications under the same organization (under development...).
添加到应用程序
按照以下步骤将提供者添加到您的应用程序中。 Note that you cannot use a provider in your application until you have added it.
转到应用程序编辑页面并添加一个新的提供商。

选择您想要添加到应用程序的提供商。 You will see all providers that the application can use.

对于OAuth和Captcha提供商,您可以配置它们的使用方式。 请参阅 OAuth 和 验证码 以获取更多信息。

最后,保存配置。 您现在可以尝试在您的应用程序中使用该提供程序。