Authentication
Authentication
Section titled “Authentication”sup CLI supports multiple authentication methods for connecting to Superset and Preset workspaces.
Preset.io Authentication
Section titled “Preset.io Authentication”API Token (Recommended)
Section titled “API Token (Recommended)”Get your API credentials from Preset Settings.
export PRESET_API_TOKEN="your-token"export PRESET_API_SECRET="your-secret"JWT Token
Section titled “JWT Token”For advanced users with JWT access:
export PRESET_JWT_TOKEN="your-jwt-token"Self-hosted Superset
Section titled “Self-hosted Superset”Username/Password
Section titled “Username/Password”export SUPERSET_URL="https://your-superset.com"export SUPERSET_USERNAME="admin"export SUPERSET_PASSWORD="password"Session Token
Section titled “Session Token”If you have an existing session:
export SUPERSET_SESSION_TOKEN="session-token"Credential Storage
Section titled “Credential Storage”sup can store credentials securely:
# Store credentialssup auth login
# Clear stored credentialssup auth logoutTesting Authentication
Section titled “Testing Authentication”Verify your authentication:
sup workspace listIf authentication is successful, you’ll see your available workspaces.