メインコンテンツにスキップ

プロバイダー

プロバイダーは、Casdoor を外部サービス (サインイン用の ID プロバイダー、メールサービス、クラウドストレージなど) に接続します。プロバイダーを一度作成すると、それを使用する複数のアプリケーションに追加できます。

プロバイダーのカテゴリ​

CategoryPurpose
AuditSend the audit records of Casdoor to a Syslog server. See Syslog audit provider
キャプチャProtect sign-in and sign-up with a captcha. See Captcha providers
メールSend email, such as verification codes and notifications. See Email providers
Face IDRecognize faces for Face ID sign-in. See Face ID providers
ID VerificationVerify the identity of users from ID documents. See Identity verification providers
LogForward permission audit events to a logging backend, or store them as entries. See Log providers
MFAProvide a second factor, such as RADIUS. See MFA providers
NotificationSend messages to chat services, such as Slack and Telegram. See Notification providers
OAuthLet users sign in with external identity providers, such as GitHub and Google. See OAuth providers
支払いTake payments for products and subscriptions. See Payment providers
SAMLLet users sign in with external SAML identity providers. See SAML providers
ScanScan servers for security issues and MCP endpoints. See Scan providers
SMSSend SMS verification codes. See SMS providers
ストレージStore files on the local file system or in cloud object storage. See Storage providers

プロバイダーを利用できるユーザー​

プロバイダーを作成できるのは管理者のみです。プロバイダーが利用可能な範囲は、作成者によって異なります:

Created byAvailable to
A global administrator: a user of the built-in organization, or a user with IsGlobalAdminAll applications
An organization administrator: a user with IsAdminApplications of the same organization

Log providers of the types System Log, SELinux Log, and Agent read the logs of the Casdoor server or accept data on its address, so only a global administrator can save them. An organization administrator who saves one gets Unauthorized operation.

プロバイダーが接続できるアドレス​

A provider of an organization other than admin, built-in, and the trusted organizations can connect only to Internet addresses. Casdoor refuses private, loopback, link-local, and unspecified addresses, and the shared address space 100.64.0.0/10. It checks the address that the host name resolves to. For HTTP requests, it checks every connection, including redirects. This stops an organization administrator from reaching the internal network of the Casdoor server, such as a database or a cloud metadata endpoint, through a provider.

このルールは次の接続に適用されます:

CategoryConnection
EmailThe SMTP server, or the endpoint of Custom HTTP Email
SMSThe endpoint of Custom HTTP SMS
NotificationThe endpoint of Custom HTTP
StorageThe endpoint of the storage service
OAuthThe token, user info, and logout endpoints of the provider, and the OIDC discovery that the Request button fetches. The types GitHub, Google, Facebook, LinkedIn, Steam, Line, Amazon, Instagram, TikTok, Twitter, Uber, and Yahoo always use the proxy instead

内部ネットワーク上のサービス(ローカル SMTP サーバーなど)に接続するには、グローバル管理者としてプロバイダーを作成してください。組織管理者が OIDC プロバイダーで Request をクリックした場合、プロバイダーがどの組織に属していても、Casdoor はディスカバリフェッチに対して同じルールを適用します。

ある組織の管理者が内部ネットワークに接続するプロバイダーを管理できるようにするには、グローバル管理者がその組織に対して Trusted organization を有効にする必要があります(商用エディション)。その後、このルールはその組織のプロバイダーには適用されず、その管理者による Request ボタンにも適用されません。

プロバイダーの作成​

  1. Casdoor 管理コンソールで、Identity > Providers に移動し、プロバイダーを追加します。
  2. Category と Type を選択します。Casdoor は Name と Display name を自動入力します: 名前は provider_<category>_<type> のパターンに従い、表示名は <Category> <Type> になります。フィールドを手動で編集すると、Casdoor による更新は停止されます。
  3. 型のフィールドを入力します。各プロバイダータイプのページに一覧があります。
  4. プロバイダーを保存します。

アプリケーションにプロバイダーを追加する​

プロバイダーは、追加したアプリケーションでのみ有効になります。

  1. アプリケーションの編集ページを開き、Providers タブに移動して行を追加します。

    Add button in the Providers table

  2. プロバイダーを選択します。リストには、そのアプリケーションで利用可能なすべてのプロバイダーが表示されます。

    Provider list of the application

  3. OAuth および captcha プロバイダーの場合は、アプリケーションでの使用方法を設定します。Add providers to an application および Configure the default captcha を参照してください。

    Settings of a provider in the application

  4. アプリケーションを保存します。

関連項目​