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

Casdoor-SSO

Casibaseは、Casdoorをアイデンティティとシングルサインオン(SSO)プロバイダとして使用しています。 あらかじめデプロイしておいてください。

Casdoorのインストールと設定については、Casdoorサーバーインストールガイドを参照してください。

以下の手順に従って、Casibase用のCasdoorを設定してください:

  • 組織を作成する

組織作成

  • 組織情報を設定する

組織設定

  • 新しいアプリケーションを作成する

アプリケーション作成

  • アプリケーション情報を設定する(アプリケーション名、ClientID、ClientSecretを覚えておいてください)

アプリケーション設定

  • Create a Certificate: In the Casdoor dashboard, choose Cert → Add, keep Algorithm as RS256 (default), enter a name, and click Save.

create-cert

  • Bind the Certificate to the Application: Open the Config tab of your newly created Application, select the certificate you just created from the Cert dropdown, and click Save.

bind-cert

  • 新しく作成した組織にメンバーを追加する

ユーザー追加

ユーザー追加

  • メンバー情報を設定する(ユーザー名とパスワードを覚えておいてください)

ユーザー設定

ユーザー設定

User Data Synchronization

Casibase automatically keeps user information synchronized with Casdoor. When a user's account is accessed through the application, Casibase fetches the latest user data directly from Casdoor rather than relying on cached session data. This ensures that any updates to user profiles in Casdoor—such as changes to name, email, avatar, or permissions—are immediately reflected in Casibase without requiring users to log out and log back in.

This real-time synchronization happens transparently in the background whenever the application needs to access the current user's account information.

Billing Integration

Casibase integrates with Casdoor's transaction system for AI usage billing. When users interact with AI models, transaction records are automatically created in Casdoor to track token consumption and costs. This enables centralized billing management across all your applications. For details on how transactions work, see the Billing & Usage section.