Disable OAuth authentication when pulling the code with Git

RCVA April 27, 2022

Hello, I think everything is in the title : how do I disable systematic OAuth Authentication when I pull my code with Git ? I always need to press "Authorize" button which opens my browser, log in, and close the tab for each repository I want to update...

image_2022-04-27_105027043.png

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 29, 2022

Hi @RCVA,

I believe that this prompt is coming from the credential manager.

If you are using the following credential manager (this is the most common I have seen):

This credential manager has an option to override the available authentication modes presented during Bitbucket authentication:

In this case, you would need to run

git config --global credential.bitbucketAuthModes "basic"

in order to force basic authentication only. Afterwards, make sure you remove any stored credentials for bitbucket.org from the credential manager, and you should get asked for username and app password next time you pull (which will then be saved).

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events