VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Not able to sign in to Visual studio with github signin

Open galliumsoft opened this issue 5 years ago • 66 comments

Am facing an issue when trying to sign in to my new visual studio installation with my github account. The integration between visual studio community edition and github doesnt seem to be working and I am getting this error (there are bunch of errors that keep popping up like this..
An error has occurred in the script on this page URL: https://github.githubassets.com/assets/environment-bootstrap-0b18da31.js Do you want to continue running scripts on this page?

after clicking few such popups , i get the login screen of github .. after i enter the username and password, it asks me to authorize microsoft-corp (formatting is malfunctioning in that page, i guess, because of the script misfires).. once i say ok, then i get a Sorry, the server cannot be connected message and the signin doesnt happen.

Could you please check and let me know what is a good solution to get past this issue? thanks

galliumsoft avatar Aug 14 '20 13:08 galliumsoft

I have the same problem with Visual Studio Community 2019.

AlbyTree avatar Aug 15 '20 15:08 AlbyTree

I'm also experiencing this issue.

paddywaan avatar Aug 24 '20 19:08 paddywaan

Have the same problem. Did anyone find a solution?

ishan84 avatar Sep 02 '20 14:09 ishan84

Yes, kind of. VS started prompting me that trial was ended, and i'm still unable to sign in via githubs OAuth, however, after you enter your e-mail address, you are prompted to be redirected to the github OAuth login. DON'T. Instead choose the option to request a single use code to be sent to your e-mail. This way you can avoid the .js errors of logging in via OAuth.

I hope this works as a temporary fix.

paddywaan avatar Sep 07 '20 13:09 paddywaan

Hey.

I tried this but it did not work. My trial has expired but i will try this again.

Thanks for your help

On Mon, 07 Sep 2020, 15:50 Paddy, [email protected] wrote:

Yes, kind of. VS started prompting me that trial was ended, and i'm still unable to sign in via githubs OAuth, however, after you enter your e-mail address, you are prompted to be redirected to the github OAuth login. DON'T. Instead choose the option to request a single use code to be sent to your e-mail. This way you can avoid the .js errors of logging in via OAuth.

I hope this works as a temporary fix.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/github/VisualStudio/issues/2538#issuecomment-688339298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOTYC6GO32F5GPHTL5B7EUDSETQKRANCNFSM4P7QOUTA .

BigOine avatar Sep 08 '20 07:09 BigOine

Thanks paddywaan.

I ended up changing the authentication method in the Microsoft account. That way I was able to bypass the Github SSO and sign in a different way.

ishan84 avatar Sep 08 '20 16:09 ishan84

Still having the same issue.

mystictide avatar Sep 12 '20 09:09 mystictide

I'm also experiencing this issue

Aurumaker72 avatar Sep 12 '20 12:09 Aurumaker72

This method worked for me: Go to tools, options, choose accounts. On the sign-in options, select to use the option "System web browser" instead of "Embedded web browser" to add and re-authenticate accounts. You can also access this option by selecting account options from the Sign-In / Log-in page. After changing to system browser, try signing up or logging in again. It will redirect you to your desktop web browser from which you can complete your registration.

BigOine avatar Sep 14 '20 11:09 BigOine

I have this issue too.

shiratensei avatar Sep 17 '20 05:09 shiratensei

I have it too.

CreeperPlanet26 avatar Sep 26 '20 00:09 CreeperPlanet26

Hi @rub8n,

Do you know if this issue is being tracked on the Microsoft side? It isn't related to the GitHub for Visual Studio extension.

jcansdale avatar Sep 30 '20 11:09 jcansdale

Switching to "System web browser", as BigOine mentioned, also helped me when experiencing this issue

ElektrosStulpas avatar Oct 01 '20 13:10 ElektrosStulpas

I can't switch browser becase I can't login, because github login in broken.

stiv-yakovenko avatar Dec 25 '20 10:12 stiv-yakovenko

Can someone take a look at this? 😄

Groenbech96 avatar Jan 04 '21 18:01 Groenbech96

It's still doing this.

paulsinnett avatar Feb 24 '21 20:02 paulsinnett

Work around: click no on everything and eventually it will let you in.

paulsinnett avatar Feb 24 '21 20:02 paulsinnett

Same issue. After I login into github (I changed to system browser), it says authorization successful but can't enter.

imtrobin avatar Feb 28 '21 15:02 imtrobin

It's also a little sketch that it uses "Microsoft-corp". It's difficult to verify that this is actually Microsoft.

jbrantly avatar Mar 01 '21 22:03 jbrantly

Using the Connect.. link in the Manage Connection tab works for me image

DDAndyChen avatar Mar 18 '21 02:03 DDAndyChen

Same issue here. bilde

carlos-ch avatar Mar 24 '21 18:03 carlos-ch

I was able to resolve this issue by temporarily switching my default browser to Edge - as soon as I did that I was able to sign in

hankatola avatar May 18 '21 15:05 hankatola

Hope this helps.

image

9paradox avatar Jun 25 '21 08:06 9paradox

As far as July 2021, I experienced this same issue. Though I was able to successfully logging in, after closing those 4 error messages, and providing my user name and password. I use 2FA for GitHub, so I saw those errors twice. After I logged in, I went to the account settings, and I had to "refresh" my credentials to my GitHub account (re-authorize VS2019; or something like that).

carloswm85 avatar Jul 19 '21 21:07 carloswm85

Hi everyone!

We encourage everyone to use the integrated add account flow for GitHub which can be accessed from the Account Settings dialog. The account settings dialog can be invoked via the main menu: File > Account Settings...

This option might only be available after you sign in with a work, school or personal account to Visual Studio as Visual Studio currently does not support licensing and other general operations with GitHub accounts.

Here's an example of how it looks and where to find the entry point: image

Alternatively, if for whatever reason you need to use the older and unfortunately not well supported "Sign in with GitHub" model (image below), you'll have to switch to the "System Web Browser" per the instructions shared by @9paradox: https://github.com/github/VisualStudio/issues/2538#issuecomment-868322169

image

Thanks!

rub8n avatar Jul 22 '21 21:07 rub8n

I was able to resolve this issue by temporarily switching my default browser to Edge - as soon as I did that I was able to sign in

I switch my default bowser from Edge to Chrome and that allowed me to sign in.

mlittle301 avatar Aug 06 '21 16:08 mlittle301

Hi everyone!

We encourage everyone to use the integrated add account flow for GitHub which can be accessed from the Account Settings dialog. The account settings dialog can be invoked via the main menu: File > Account Settings...

This option might only be available after you sign in with a work, school or personal account to Visual Studio as Visual Studio currently does not support licensing and other general operations with GitHub accounts.

Here's an example of how it looks and where to find the entry point: image

Alternatively, if for whatever reason you need to use the older and unfortunately not well supported "Sign in with GitHub" model (image below), you'll have to switch to the "System Web Browser" per the instructions shared by @9paradox: #2538 (comment)

image

Thanks!

It's not working(

Ahri-ninetailed avatar Sep 26 '21 01:09 Ahri-ninetailed

@Ahri-ninetailed

Please create a Visual Studio feedback ticket so we can look into it: https://developercommunity.visualstudio.com/report?space=8&q=github&entry=problem

rub8n avatar Oct 01 '21 21:10 rub8n

I'm behind a proxy. I try to sign in following this button in the IDE:

image

When I try to sign in using any of the system web browsers (Chrome, Firefox or Edge), I get this error:

image

The line in Spanish says something like: "Error while sending the request".

image

Does anyone know what's the "Device Code" option? By the way, the embedded browser does pop up the sign in window, but I'm not able to make the sing in work, it return different error from some JavaScript code hosted at GitHub. Error are all of the like this one here:

image

carloswm85 avatar Jan 03 '22 13:01 carloswm85

https://github.com/github/VisualStudio/issues/2538#issuecomment-927209433

Hi everyone!

Alternatively, if for whatever reason you need to use the older and unfortunately not well supported "Sign in with GitHub" model (image below), you'll have to switch to the "System Web Browser" per the instructions shared by @9paradox: #2538 (comment)

image

Thanks!

But "System Web Browser" is not working for me neither.

carloswm85 avatar Jan 03 '22 13:01 carloswm85