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

Can't login with my Gitlab account on SourceTree

Ken February 13, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2019

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

Ken May 29, 2019

Sorry for late reply. I didn't

I created personal access token and it works

Thanks

0 votes
Oana Mada January 28, 2022
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").
0 votes
Grace Chang August 19, 2020

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

Raphael Oduyoye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2020

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
AUG Leaders

Atlassian Community Events