BisQue separates interactive browser sessions from public command-line and notebook clients.
Browser applications
Section titled “Browser applications”The BisQue web application uses OpenID Connect authorization code flow with PKCE. Provider tokens are held server-side and the browser receives an opaque session cookie. State-changing requests also require BisQue’s browser request protections; do not treat the session cookie as a general-purpose API credential.
Personal API keys (unstable)
Section titled “Personal API keys (unstable)”Create a personal API key from Your profile → API key, available at /profile
or in the account menu. Each account can have one active key. It never expires and
grants the owner’s current permissions; account disabling, role changes, refresh,
and revocation are checked on subsequent authentication. Requests already authorized
may finish. There are no custom scopes or key names.
Copy the full secret immediately after Create or Refresh. It is shown only once and is never stored as plaintext by the server. Close your profile to clear it from the UI. Refresh replaces the key atomically and invalidates existing clients; Revoke disables it. Update clients explicitly after refresh. Do not automatically retry key mutations.
Authorization: Bearer <bq_personal-api-key>The bq_ prefix selects personal-key verification. Invalid keys never fall back to
OAuth or a browser cookie. Other bearer credentials continue through OAuth.
Browser-session-only management endpoints are under /api/v1/auth/profile/api-keys:
| Method | Path | Result |
|---|---|---|
| GET | /api/v1/auth/profile/api-keys |
List active metadata (zero or one), without secrets or digests |
| POST | /api/v1/auth/profile/api-keys |
Create; metadata and secret once; 409 when already active |
| POST | /api/v1/auth/profile/api-keys/{keyId}/rotate |
Atomically replace the owned active key; metadata and secret once |
| DELETE | /api/v1/auth/profile/api-keys/{keyId} |
Revoke; repeated revocation succeeds |
Mutations require X-Bisque-CSRF: 1. Cross-user IDs return 404. Responses, including
errors, use Cache-Control: private, no-store. API keys, OAuth, and Basic credentials
cannot manage keys. Keys are separate records; the current database index and service
limit enforce one active key per owner.
The Python SDK supports explicit keys and BQ_API_KEY:
import osimport bq_sdk as bq
with bq.Bisque("https://bisque.example.org", api_key=os.environ["BQ_API_KEY"]) as client: print(client.user().username)
# BQ_HOST and BQ_API_KEY can configure the process default client.bq.login()Pass either api_key or a complete username/password pair. Explicit credentials take
precedence; an environment with both BQ_API_KEY and password credentials is rejected.
The scoped constructor always requires explicit host and credentials. Key clients
verify identity through /auth/user, use bearer headers for normal and streaming
requests, and derive their cache namespace from the verified user. Neither interface
saves secrets. Logout flushes and closes a key client; revoke keys explicitly in your
profile. bisque auth login accepts BQ_API_KEY and remembers only the host.
CLI and notebook OAuth clients
Section titled “CLI and notebook OAuth clients”When the deployment enables a public OAuth client, request
GET /api/v1/auth/client-configuration to discover the issuer, audience, scopes, and supported
flows. A CLI can use authorization code with a loopback redirect or the OAuth device
authorization flow, then send the provider access token:
Authorization: Bearer <access-token>The discovery response contains public client configuration only. It never exposes the browser client secret or another user’s provider tokens.
Local transitional authentication
Section titled “Local transitional authentication”An administrator can explicitly enable HTTP Basic authentication for compatible local or legacy clients. It is disabled by default and should only be used over a trusted TLS connection. Do not build new integrations around Basic authentication.