In SourceTree I was unable to connect to Github Enterprise using my PAT and following the documentation.
It just shows Authentication failed.
ℹ️ I've reached out to the Community Support team to take a look at this. I'm not sure if anyone's managing Sourcetree questions, but I hope someone from the official team will chime in to help out with this.
Hi @David Lucas ,
Probably would need more details about this:
Version 4.2.2 and above should (by release notes) support PATs for Github accounts 👀
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SourceTree: 3.4.13
Windows 11
We followed the official instructions to create a Personal Access Token (PAT) and use that.
I see yours show OAUTH. We will try that. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cool! Feel free to write it down here if OAuth works (or if upgrading the product to 4.2.2 works with PAT), to potentially help others if anyone stumbles upon the same/similar thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have this same issue. IDK where you get that 4.2.2 version info from but when I go in SourceTree on Update is says it IS the most recent with 3.4.25 from my Windows 11 machine
Also trying to use GitHub Enterprise with SSO, generated a PAT there and wasted a couple hours trying to look for answers why the Tools/Options Authentication will not let me add an Account; fails when I try to refresh the password so OK does not save.
Using the browser I can navigate to the site (obviously as I generated a PAT there but just being patently obvious here)
I tried both Basic and Personal Access token options and used the token as the password but it keeps telling me "Authentication failed
Failed to check login for user [myuser]
user/emails was not found.
Hosting Service: GitHub Enterprise
Host URL: Accurate URL used works in browser
Preferred Protocol: HTTPS
Credentials:
Authentication: Basic (also tried Personal Access Token
Username: pulled from the GitHub Enterprise name there, also tried my email, neither work
Refresh Password: using SSO and PAT to put the PAT token in but also tried my domain password
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, my bad @mschultheiss on that version.
Version 4.x is for Mac, and 3.x is the current/latest one for Windows.
I haven't played that much with this, and there's not that detailed documentation when it comes to Sourcetree. The only thing I've managed to dig out is this, but I'm guessing you've all followed the mentioned steps: Add an API token to Sourcetree or another application
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, done all those; seems to be some missing bit of information here that is not covered in any of the dozens of available posts everywhere on this that I have not yet discovered either.
Key here might be the GitHub Enterprise relationship which is NOT an Atlassian account but a GitHub alias for my Single Sign On (SSO) which works in the browser but not in SourceTree.
Note that all the resources I have isolated say to use the PAT (Personal Access Token) which I did that was generated from GitHub Enterprise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for contacting our Community to find out why you can't log into Sourcetree on Windows 11. To start, let's ensure there are no cached credentials which may be contributing to this issue.
To clear cached credentials for Sourcetree on Windows, please complete the following:
Once you've done the above Sourcetree should be prompting you for credentials. From what I've seen, you know how to generate your PAT to use within Sourcetree, but I'll still reference the GitHub documentation here: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.