...
- Go to Bitbucket Settings → OAuth → Add Consumer
Note: admin rights for the selected account where you want to include files from are necessary - Name your OAuth consumer, and enter the following URL to the Callback URL: https://ch-mibex-include4bitbucket.herokuapp.com/oauth-callback
Give "Read" permissions for Repositories, Issues, Pull Requests (this depends on what macros you will use, e.g., if you like to use the macro for showing all open pull requests, you have to add the appropriate permission)
4. After saving these settings, you will be able to see your OAuth Client Key and Client Secret. Please write them down for the next step below.
...
For teams: https://api.bitbucket.org/2.0/workspaces/TEAM_KEY
Here's an example:
Then copy the UUID into the field below.
...
4. Then, add the Client Key and Client Secret from the Bitbucket OAuth consumer configuration to this dialog. Afterwards, press Submit.
5. Finished. You can now include files, issues and pull requests from Bitbucket private repositories into Confluence with the apps' macros.
...