The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Authentiaction failed with Personal Access Token

smn_ksng
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!
June 27, 2023

Hello everyone,

In Sourcetree, I'm trying to add an account at the Remote repositories. In the window that says 'Edit Hosting Account', I choose GitLab as Hosting Service and HTTPS. 

In LrzGitlab, I create a personal access token which I use as password in the 'Sourcetree personal access token request' window that pops up, along with my username. It then always says 'Authentication failed'. 

My coworker always uses GitLab as Hosting Service, even though the PAT was created in LrzGitLab, but that doesn't work for me apparently. I hope someone has experience with LrzGitLab or that sort of problem in general. Any idea would be much appreciated.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Martin Runge
Community Champion
August 21, 2026

Hi @smn_ksng

Welcome to the Atlassian community!

LrzGitLab is a self-hosted GitLab, so choosing plain GitLab as a hosting service points to SourceTree on gitlab.com. That will always fail with a token from another server. I would switch to GitLab CE or GitLab EE in the hosting service dropdown and set the host URL to your LRZ instance.

Two more things I would verify:

  • The PAT needs the api scope, not just read_repository
  • Username must be your GitLab username, not your email or TUM/LRZ ID

Cheers, Martin

TAGS
AUG Leaders

Atlassian Community Events