Skip to main content

Casdoor-SSO

Casibase uses Casdoor as its identity and single-sign-on (SSO) provider. Make sure to deploy it in advance.

Please refer to Casdoor Server Installation to install and configure Casdoor.

Follow these steps to setup Casdoor for casibase:

  • Create an Organization

create-organization

  • Configure information about the Organization

configure-organization

  • Create a new Application

create-application

  • Configuring Application Information (Remember Name, ClientID and ClientSecret)

configure-application

  • 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

  • Add a member to the newly created organization

add-user

add-user

  • Configure member information (remember its Name as well as Password)

configure-user

configure-user

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.