Details
-
Bug
-
Resolution: Timed out
-
Low
Description
We do not support using OAuth to access the SSH endpoints on the Bitbucket API at this point in time.
However, when trying to perform a call to this endpoint, like the example below:
#!bash curl -X POST https://bitbucket.org/api/2.0/users/<user>/ssh-keys -H 'Accept:application/json' -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' -d '{ "label": "<label>", "key":"<ssh_key>" }'
The API returns this response:
#!bash {"type": "error","error":{ "message": "Something went wrong", "id": "<code>" }}
It should actually return a 403 error.