Bytebase
This guide configures Bytebase to sign in via Casdoor using OAuth2/OIDC.
Variables: CASDOOR_HOSTNAME — Casdoor server URL (e.g. http://localhost:8000). Bytebase_HOSTNAME — Bytebase server URL.
Step 1: Deploy Casdoor and Bytebase
Deploy Casdoor and Bytebase. Ensure both are running and you can sign in to Casdoor. For production, see production mode.
Step 2: Configure Casdoor application
- Create or open a Casdoor application.
- Add redirect URL:
<CASDOOR_HOSTNAME>/callback(e.g.http://localhost:8000/callback). Note Client ID and Client secret for Bytebase.

OIDC discovery: http://<CASDOOR_HOSTNAME>/.well-known/openid-configuration
Step 3: Configure Bytebase
- In Bytebase open SSO and choose OAuth 2.0.
- Enter Casdoor Client ID and Client secret. Set URLs:
- Token server URL:
http://<CASDOOR_HOSTNAME>/api/login/oauth/access_token - Authorization server URL:
http://<CASDOOR_HOSTNAME>/login/oauth/authorize - User Info server URL:
http://<CASDOOR_HOSTNAME>/api/get-account - Scopes:
address phone openid profile offline_access email
- Token server URL:

Sign out of Bytebase and test SSO login.
