Chuyển tới nội dung chính

Providers

A provider connects Casdoor to an external service, such as an identity provider for sign-in, an email service, or a cloud storage. You create a provider once and then add it to the applications that use it.

Provider categories​

CategoryPurpose
AuditSend audit events to an external system
CaptchaProtect sign-in and sign-up with a captcha. See Captcha providers
EmailSend 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
PaymentTake 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
StorageStore files on the local file system or in cloud object storage. See Storage providers

Who can use a provider​

Only administrators create providers. Where a provider is available depends on who created it:

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

Create a provider​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.
  2. Select the Category and the Type. Casdoor fills in Name and Display name: the name follows the pattern provider_<category>_<type>, and the display name is <Category> <Type>. Casdoor stops updating a field once you edit it yourself.
  3. Fill in the fields of the type. The page of each provider type lists them.
  4. Save the provider.

Add a provider to an application​

A provider takes effect only in the applications that you add it to.

  1. Open the edit page of the application, go to the Providers tab, and add a row.

    Add button in the Providers table

  2. Select the provider. The list shows all providers that are available to the application.

    Provider list of the application

  3. For OAuth and captcha providers, set how the application uses them. See Add providers to an application and Configure the default captcha.

    Settings of a provider in the application

  4. Save the application.

See also​