Gittyup icon indicating copy to clipboard operation
Gittyup copied to clipboard

Cant login to my github? Host requires authentication - I dont use authentication, Ive never used authentication

Open ItsCubeTime opened this issue 2 years ago • 13 comments

image

Theres also this old related issue: https://github.com/gitahead/gitahead/issues/494 where they suggest creating an access token to use as password, I tried that as well with the same outcome

ItsCubeTime avatar May 16 '22 17:05 ItsCubeTime

If you use SSH urls to clone you are required to authenticate. HTTPS urls can be downloaded anonymously but you can't push without authenticating. These are now Gittyup limitations, this is GitHub policy enforced on their side. You you want to push to a repo you nede to setup a personal access token and use that as the password in Gittyup.

alerque avatar May 16 '22 18:05 alerque

Currently the Github Account authentication does not work, because OAuth2 is not yet implemented in Gittyup and the previous basic authentication on Github is anymore allowed.

The easies way to push to Github:

  1. Create ssh key on your computer
  2. Add the public key to your Github account (https://github.com/settings/keys)
  3. clone Github Repository using ssh (Gittyup for example: [email protected]:Murmele/Gittyup.git)

Gittyup uses the default ssh configuration on your computer on Linux: ~/home/$USER/.ssh

so you can normaly push.

Murmele avatar May 20 '22 08:05 Murmele

@ItsCubeTime you said it doesn't work using an access token - which scopes did you assign and which version are you using?

For me it works with just the repo scope

image image

exactly-one-kas avatar May 28 '22 05:05 exactly-one-kas

@ItsCubeTime you said it doesn't work using an access token - which scopes did you assign and which version are you using?

For me it works with just the repo scope

image image

I gave it access to literally everything

ItsCubeTime avatar Jun 05 '22 10:06 ItsCubeTime

I think I encountered the same problem: cannot clone private repo. Created a personal access token: Screenshot from 2022-07-12 15-19-59 Got the error: Screenshot from 2022-07-12 15-20-14

UPDATE: after I cloned the repo with CLI and added it to Gittyup, everything works. Command used: git clone https://username:[email protected]/repo_name.git

AsriFox avatar Jul 12 '22 12:07 AsriFox

@AsriFox you were trying to clone using SSH - personal tokens only work for HTTPS (as far as I know) Also, this issue is about linking a GitHub account (accessible using the bottom of the left sidebar)

@ItsCubeTime Did you make sure that the token was put in without any surrounding spaces or newlines? I had a stray newline when copying my token which caused the login to fail

exactly-one-kas avatar Jul 27 '22 20:07 exactly-one-kas

@ItsCubeTime is this still reproducable?

Murmele avatar Jan 23 '23 14:01 Murmele

image

Theres also this old related issue: gitahead/gitahead#494 where they suggest creating an access token to use as password, I tried that as well with the same outcome

@ItsCubeTime did you use the username or the email in the "Username" textfield? Only your username is working, not the email address

Murmele avatar Jan 27 '23 13:01 Murmele

@ItsCubeTime

Murmele avatar Apr 03 '23 14:04 Murmele

image Theres also this old related issue: gitahead/gitahead#494 where they suggest creating an access token to use as password, I tried that as well with the same outcome

@ItsCubeTime did you use the username or the email in the "Username" textfield? Only your username is working, not the email address

Idk what I used last time, but I tried again today image image

and see the same error, using my usern & password that I use when logging into github.com via the website

ItsCubeTime avatar Apr 03 '23 16:04 ItsCubeTime

What is the solution?

TechnoLukas avatar Jan 16 '24 23:01 TechnoLukas

You have to use your username (not email) and the access token you can create.

Murmele avatar Jan 17 '24 06:01 Murmele