A serverless proxy for Bitbucket Cloud API v2.
Authentication is handled via the Authorization header. This is the recommended and secure method.
-
OAuth Token: Use
Bearer <token>in theAuthorizationheader.Authorization: Bearer <your-oauth-token> -
App Password: Use
Basic <base64(user:password)>in theAuthorizationheader.Authorization: Basic <base64-encoded-credentials>
Authentication via query parameters (?token= and ?user=) is deprecated and disabled by default to prevent credential leakage in logs and URLs.
To enable this method (not recommended), set the ALLOW_QUERY_AUTH environment variable to "true" in your wrangler.toml or Cloudflare dashboard.
When enabled:
?token=<token>maps toBearer <token>.?token=<token>&user=<user>maps toBasic <base64(user:token)>.
A warning will be logged when this method is used.