Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others


0 votes
in Technique[技术] by (71.8m points)

Intellij Android Studio opens localhost page to login on github

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?


Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share