Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Authentication for creating commits by REST API

John Lawlor
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2017

With reference to this document

Specifically the commit request:

curl https://api.bitbucket.org/2.0/repositories/username/slug/src \
    -F /repo/path/to/image.png=@image.png

I don't see how this request is authenticated, there is no password or personal access token used.

1 answer

1 accepted

1 vote
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2017

Hi John, the documentation is assuming that the user is already authenticated 

Bitbucket uses the authenticated user's full/display name and primary email address. Commits cannot be created anonymously.

Similarly to when you do any git operations from your terminal.

Hope that clarifies!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events