Skip to content

Bitbucket no longer supports account password for API authentication #399

@dregad

Description

@dregad

Attempting to import changesets for a Bitbucket repository results in failure

Oldest 'master' branch parent: ''
Retrieving master ... failed.
Looking up target commit for release/v2 ... 
SYSTEM NOTICE: 'Trying to get property 'target' of non-object' in '.../source-integration/SourceBitBucket/SourceBitBucket.php' line 339
SYSTEM NOTICE: 'Trying to get property 'hash' of non-object' in '.../source-integration/SourceBitBucket/SourceBitBucket.php' line 339
Retrieving  ... failed.

Debugging the API call, url_get() returns the following payload:

Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
https://bitbucket.org/account/settings/app-passwords/
For more details on API authentication methods see our documentation:
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions