You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to use List Pull Request API with App Password.
I'm using Basic Auth. If I use my account password, then the API response is following.
Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
For more details on API authentication methods see our documentation:
So I created App Password and selected all permissions. And then, I changed Basic Auth to use App Passwords. The username is "Name of the App Password," and the password is "Password of the App Password."
Now the response of the same List Pull Request API is
Is there anything else that I have to do to make it work? Like I said that I gave all permissions to the app password. And according to Bitbucket API, I can use app passwords with Basic Auth.
Note that Basic Auth is available only with username and app password as credentials
Hi @harri_rajala_koivu_solutions - to use app passwords in basic auth, the username you'd use is your Bitbucket username (visit https://bitbucket.org/account/settings/ to see/change your username). As I understood it, you were trying to use the label that you attributed to the app password when you created it.