Zum Hauptinhalt springen

Anbieter

Ein Anbieter verbindet Casdoor mit einem externen Dienst, wie z. B. einem Identitätsanbieter für die Anmeldung, einem E-Mail-Dienst oder einem Cloud-Speicher. Sie erstellen einen Anbieter einmal und fügen ihn dann den Anwendungen hinzu, die ihn nutzen.

Anbieterkategorien​

CategoryPurpose
AuditSend the audit records of Casdoor to a Syslog server. See Syslog audit provider
CaptchaProtect sign-in and sign-up with a captcha. See Captcha providers
E-MailSend 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
ZahlungTake 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
SpeicherStore files on the local file system or in cloud object storage. See Storage providers

Wer kann einen Anbieter verwenden​

Nur Administratoren erstellen Anbieter. Ob ein Anbieter verfügbar ist, hängt davon ab, wer ihn erstellt hat:

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

Protokollanbieter der Typen System Log, SELinux Log und Agent lesen die Protokolle des Casdoor-Servers oder akzeptieren Daten an seiner Adresse, daher können nur globale Administratoren sie speichern. Ein Organisationsadministrator, der versucht, einen solchen Anbieter zu speichern, erhält Unauthorized operation.

Welche Adressen ein Anbieter erreichen kann​

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.

Die Regel betrifft diese Verbindungen:

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

Um eine Verbindung zu einem Dienst in Ihrem internen Netzwerk herzustellen, wie z. B. einem lokalen SMTP-Server, erstellen Sie den Anbieter als globaler Administrator. Wenn ein Organisationsadministrator bei einem OIDC-Anbieter auf Request klickt, wendet Casdoor dieselbe Regel auf den Discovery-Fetch an, unabhängig davon, zu welcher Organisation der Anbieter gehört.

Damit die Administratoren einer Organisation Provider verwalten können, die sich mit dem internen Netzwerk verbinden, muss ein globaler Administrator Trusted organization für diese Organisation aktivieren (Commercial Edition). Die Regel gilt dann nicht für die Provider dieser Organisation, auch nicht für die Schaltfläche Request für ihre Administratoren.

Einen Anbieter erstellen​

  1. Gehen Sie im Casdoor-Admin-Konsolenbereich zu Identity > Providers und fügen Sie einen Anbieter hinzu.
  2. Wählen Sie die Category und den Type. Casdoor füllt Name und Display name automatisch aus: Der Name folgt dem Muster provider_<category>_<type>, und der Anzeigename ist <Category> <Type>. Casdoor aktualisiert ein Feld nicht mehr, sobald Sie es selbst bearbeiten.
  3. Füllen Sie die Felder des Typs aus. Die Seite jedes Anbietersyps listet sie auf.
  4. Speichern Sie den Anbieter.

Einen Anbieter zu einer Anwendung hinzufügen​

Ein Anbieter wirkt nur in den Anwendungen, denen Sie ihn hinzufügen.

  1. Öffnen Sie die Bearbeitungsseite der Anwendung, gehen Sie zum Tab Providers und fügen Sie eine Zeile hinzu.

    Add button in the Providers table

  2. Wählen Sie den Anbieter. Die Liste zeigt alle Anbieter an, die für die Anwendung verfügbar sind.

    Provider list of the application

  3. Legen Sie für OAuth- und Captcha-Anbieter fest, wie die Anwendung sie verwendet. Siehe Anbieter zu einer Anwendung hinzufügen und Standard-Captcha konfigurieren.

    Settings of a provider in the application

  4. Speichern Sie die Anwendung.

Siehe auch​