handesk
handesk copied to clipboard
OAuth Bitbucket?
Hello, does the OAuth option work for Bitbucket issues? I've added an OAuth consumer in my Bitbucket user settings and generate the key and secret. I've edited my env file to use oauth and pasted the key and secret there but when attempting to send an issue, it says something went wrong. There's error in the log, I've edited out the private info.
[2018-06-11 20:51:38] production.ERROR: Client error: `POST https://api.bitbucket.org/1.0/repositories/user/project/issues` resulted in a `401 Unauthorized` response {"userId":1,"email":"[email protected]","exception":"[object] (GuzzleHttp\\Exception\\ClientException(code: 401): Client error: `POST https://api.bitbucket.org/1.0/repositories/user/project/issues` resulted in a `401 Unauthorized` response at /home/forge/my_site/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)
I changed to basic and used my standard login details and it works fine. Could you confirm if oauth works and possibly where I went wrong?
Thanks!
The truth is that I never was able to make it work and I ended up using the user/pswd method for authentication, so just put them in the .env and it will work