Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
7.8k views
Welcome To Ask or Share your Answers For Others

1 Answer

It should not work this way and this is likely a bug. Especially the prompt when accessing localhost. Probably the best way to find out the exact reason is to contact support.

Possible reasons for not using saved GitHub account are using different URL in the project remote, or just the disabled saving of secrets in the IDE.

The credential prompts for localhost access is not clear. This is the call to local oath handler deployed by the IDE itself, and typically should not need any input from the user.

Git is working on the CLI because it likely uses credential-helper, which is not used in the IDE by default. You can enable it in Settings | Version Control | Git -> Use credential helper.

Note that with credential helper in use the account configured in the IDE is not used and git authenticates with whatever is saved in the helper.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share
...