10

I am using android studio version 4.2 beta 3 and while I am using the GUI to push/fetch the studio prompts to login on github while I have already set an account.

enter image description here

The strange this is that I can use git on terminal but not on GUI.

I select the first option and my browser navigates me to a website that says to authorize in Github, I press the button, login on Github and then I get the following localhost page which needs some unknown credentials.

enter image description here

Do you have any ideas on how to fix this issue?

Thanks

Nick Pampoukidis
  • 702
  • 8
  • 28

4 Answers4

13

This actually turns out to be an Android Studio bug. See e.g. this and this reports

In the corresponding IntelliJ IDEA version it is working fine.

Log in using a token instead, as a workaround.

Dmitrii Smirnov
  • 7,073
  • 1
  • 19
  • 29
0

Unfortunately the issue still persists in android studios latest release but your workaround of Token works.

Harsh R
  • 11
  • 2
  • Please don't add "thank you" as an answer. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation), you will be able to [vote up questions and answers](https://stackoverflow.com/help/privileges/vote-up) that you found helpful. - [From Review](/review/late-answers/29792709) – Stefano Sansone Sep 10 '21 at 15:32
0

you have to Generate a new SSH key and adding it to the ssh-agent , you can find it there

Ali Salehi
  • 164
  • 2
  • 9
0

My Github account is using the Single Sign-On from my organisation, so what worked for me was to go into Github settings -> SSH and GPG keys and then clicked on the button Configure SSO on my SSH key. Then click on "Authorize" for your organization.

Here's more details on how to do it https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on

This works when you get the following error while checking your project out

  Clone failed
  ERROR: The `----' organization has enabled or enforced SAML SSO. To access
  this repository, you must use the HTTPS remote with a personal access token
  or SSH with an SSH key and passphrase
  that has been authorized for this organization. Visit
  https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/ for more information.
  Could not read from remote repository.
  Please make sure you have the correct access rights
  and the repository exists.