bitbucket-oauth-app
Bitbucket Cloud OAuth 2.0 Consumer Registration
Get a working Bitbucket Cloud OAuth2 client for a platform that connects many customers' Bitbucket workspaces. A successful run produces: an OAuth consumer created inside a workspace you control, one callback URL per consumer, a ticked permission set, and a Key and Secret pair.
Read this first: Bitbucket Cloud is an Atlassian product, but its OAuth is not Atlassian 3LO. There is no
developer console app, no auth.atlassian.com, no audience parameter, no offline_access scope, no cloudid, and
no /ex/{product}/{cloudid}/… addressing. The consumer is created in workspace settings, the endpoints are on
bitbucket.org, and the API is https://api.bitbucket.org/2.0. If you arrived here from an Atlassian-console
skill, put it down — nothing in it applies except the company name. See §1.
Four things are expensive to get wrong here, and three of them are invisible at registration time: