sshKeys()->create

Issue #67 invalid
Henno Täht created an issue
$foo = $bitbucket_user_api->sshKeys()->create('hennot', file_get_contents('.keys/bb-push.public.pem'), 'temporary key for one time pushing to bitbucket');

gives 'This API has been deprecated and is not available through OAuth2 or JWT'

Am I correct assuming that Bitbucket has disabled this endpoint?

Comments (3)

  1. Alexandru Guzinschi

    You can't add SSH keys using a form of delegated access like OAuth2, because it is a potential attack vector using privilege escalation.

    Related: BB-11632

  2. Dennis Smink

    How would one go about solving this? I want to add a SSH key to my account automatically from my server.

  3. Log in to comment