Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,757
Community Members
 
Community Events
168
Community Groups

Can't login with my Gitlab account on SourceTree

When I try to login with my Gitlab account, it keep failing to authenticate with error "Authentication failed" no matter if it's username or email. I login on gitlab.com and it works perfect

I lookup Fiddler and I got a response message

{"message":"401 Unauthorized"}

Please help

VWFzlIJ

 

3 answers

1 accepted

2 votes
Answer accepted
Mike Corsaro Atlassian Team Feb 13, 2019

Hello! Could you make sure you're using a personal access token for your account? Your normal password will not work.

Sorry for late reply. I didn't

I created personal access token and it works

Thanks

PROBLEM SOLVED
The solution was (on Mac):
- revoke the old Access Token from GitLab (which had only the next Scopes: read_repository, write_repository)
- generate new Access Token having the next Scopes: api, read_user, read_repository, write_repository (it was strange that for other colleague it worked only with read_repository, write_repository)
- on SourceTree: go to SourceTree -> Preferences ->Accounts -> Add -> fill-in the details as in the following image (and for Password use the Access Token):
img.png
After this, I was able to Clone Repository ("Clone from URL").

Has anyone run into this issue, on Git push/pull, a password prompt comes up where the Gitlab password and the token do not work?

 

Screen Shot 2020-08-19 at 9.36.53 AM.pngScreen Shot 2020-08-19 at 9.31.19 AM.png

Hi did you ever get a resolution on this issue with the password.

I have generated another SSH key but to no avail.

i cant seem to get the right password. and also doing the steps again, it prompts not to save the KEY

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events