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

Custom SAML

Casdoor can act as a Service Provider (SP) and connect to any SAML 2.0 Identity Provider (IdP).

1. Configure your IdP

In your IdP (e.g. Google Workspace, Azure AD, Okta), register Casdoor as an SP with:

  • ACS URL: https://<your-casdoor-domain>/api/acs (e.g. https://door.example.com/api/acs). This endpoint accepts POST only.
  • Entity ID (SP Entity ID): use the same URL as the ACS URL.

Replace <your-casdoor-domain> with your Casdoor host (e.g. http://localhost:8000http://localhost:8000/api/acs).

2. Get IdP metadata

From your IdP, obtain the metadata XML (EntityID, SSO endpoint, etc.). Some IdPs (e.g. Keycloak) need SP details before providing metadata.

3. Configure the SAML Custom provider in Casdoor

ProvidersAdd. Set Category to SAML, Type to Custom. Set Favicon URL (IdP logo) and paste the IdP Metadata. Click Parse to fill Endpoint, IdP, Issuer URL, SP ACS URL, and SP Entity ID. Save.

フィールド説明
CategorySAML
Typeカスタム
Favicon URLIdP logo URL
MetadataIdP metadata XML

samlカスタムプロバイダーを設定する

Add the SAML provider to the application’s Providers list.

アプリケーションにsamlカスタムプロバイダーを追加する