Hi, I'm wondering if anyone has managed to get OAuth tokens working with App keys (I believe user passwords are now allowed now as that would be Resource Owner Password Credentials Grant (4.3) which is no longer supported). ref: https://developer.atlassian.com/cloud/bitbucket/oauth-2/
I've been trying the below (and modifications of it) but I just can't seem to get it to work. Are app-key O-auth supported?
Alternatively, how else do I have a python script get a token?
When you say app key, do you mean an app password generated by going to your avatar > Personal settings > App passwords?
I see that you are passing this for the client's secret (client_secret = 'my-app-key') and that you are using username for the client_id, but I think these need to be the key and secret of the OAuth consumer (the Key for client_id and the Secret for client_secret).
OAuth consumers are now associated with workspaces. In order to find the key and secret, you can go to your avatar > All workspaces > select the workspace you generated the OAuth consumer for > Settings > OAuth consumers > select the consumer and you'll see both the key and secret.