handesk icon indicating copy to clipboard operation
handesk copied to clipboard

OAuth Bitbucket?

Open AugmentBLU opened this issue 6 years ago • 1 comments

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!

AugmentBLU avatar Jun 11 '18 21:06 AugmentBLU

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

BadChoice avatar Jun 12 '18 07:06 BadChoice