Skip to main content

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

  1. Create or open a Casdoor application.
  2. Add redirect URL: <CASDOOR_HOSTNAME>/callback (e.g. http://localhost:8000/callback). Note Client ID and Client secret for Bytebase.

Redirect

OIDC discovery: http://<CASDOOR_HOSTNAME>/.well-known/openid-configuration

Step 3: Configure Bytebase

  1. In Bytebase open SSO and choose OAuth 2.0.
  2. 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

Find SSO Configure

Sign out of Bytebase and test SSO login. Login