Forums

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

Unable to register GitHub account

M I
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 25, 2023

Hi,

I have been trying to connect GitHub with Sourcetree on window however I keep getting 'login failed'.

What I did:

on GitHub, I created personal access token and when I register GitHub account I select 'Personal Access Token' for authentication instead of OAuth.

When a popup shows after I select 'Refresh Personal Access Token', I type my GitHub usename and use the personal access token that I just created as my password. 

However I keep getting 'Login failed. Authentication failed for GitHub with username <usename> - Please check your account setting'.

 

I have done the same process for Mac with no problem. Did any window user get the same message before? I hope someone in this community can help me. 

 

Thanks in advance!Screenshot (10).pngScreenshot (11).png

 

 

1 answer

0 votes
TomAuger
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!
February 23, 2024

I'm sure you've figured this out long ago or moved on, but in case anyone else stumbles upon this answer, what I think the issue was for me was not setting enough scope permissions when setting up the PAT within GitHub.

Given this is a public computer I had originally kept the scope to just read/write repo. But that failed.

When I deleted that PAT and created a new one with nearly all the scopes enabled, my authentication worked.

I wish I could say which one exactly solved my problem - I'm sure an exhaustive process of elimination could refine this answer, but hopefully this is a clue to others - doesn't seem to be mentioned anywhere else on the 'net.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events