概要
Casdoor uses providers to offer third-party services for the platform. この章では、Casdoorにプロバイダーを追加する方法を学びます。
私たちが持っているもの
Currently, we have eight types of providers:
OAuthプロバイダー
Casdoorは、他のOAuthアプリケーションを通じてユーザーがサインインすることを可能にします。 CasdoorにGitHub、Google、QQなどの多くのOAuthアプリケーションを追加することができます。 For more details, refer to the OAuth section.
SMSプロバイダー
Casdoor sends SMS messages to users when they need to verify their phone numbers. SMS providers are used to send SMS messages in Casdoor.
メールプロバイダー
メールプロバイダーはSMSプロバイダーに似ています。
ストレージプロバイダー
Casdoorは、ローカルファイルシステムまたはクラウドOSSサービスを使用してファイルを保存することをユーザーに許可します。
支払いプロバイダー
Casdoorは支払いプロバイダーを追加することができ、これは製品ページの製品に支払い方法を追加するために使用されます。 現在、サポートされている支払いプロバイダーには、Alipay、WeChat Pay、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には2種類の管理者がいます:
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およびキャプチャプロバイダーの場合、その使用方法を設定できます。 OAuthおよびキャプチャの詳細を参照してください。

最後に、設定を保存します。 これで、アプリケーションでプロバイダーを使用してみることができます。