Visualstudio: Browser authentication not working - 'Authorize' button grayed out

Created on 28 Apr 2020  路  5Comments  路  Source: github/VisualStudio

Versions

  • GitHub Extension for Visual Studio version: 2.11.96.24460
  • Visual Studio version: 2019 (16.5.4)

What happened

When I attempt to sign in to GitHub with the Visual Studio extension it presents me one option: "Sign in with your browser". When I click on it my browser opens to the following page...

https://github.com/login/oauth/authorize?client_id=blah&scope=blah&state=blah

... which displays big green button saying "Authorize github". The problem is the button is grayed out.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Click on the GitHub tab next to Solution Explorer
  2. Click 'Sign in'
  3. Click 'Sign in with your browser'
  4. Web page opens with Authorize button disabled

Expected behavior

The Authorize button I assume should be enabled. And when I click it something should happen in Visual Studio.

Screenshots

http://greenhazelstudio.com/images/github.png

Additional info

I was unable to attach the screen shot due to being on a corporate network with policies and restrictions that seem to limit the functionality of this site. Hence the URL. Now that I mention it, my issue may be related to these company restrictions.

Most helpful comment

Lool after I struggled for years.. I have found a Solution to This
The course is. First I use my google chrome which I saved my Github account with.
So my VS was taking me to Microsoft Edge and get the button disabled.

All you have to do is to change you Default browser on your machine to the one u have signed is with on github

All 5 comments

@GreenhazelStudio,

I've been told that the button is enabled with JavaScript as some king of security measure. If the browser is up to date, this issue is usually due to adblockers or some interfering extension. Would that make sense?

Please let me know how you get on!

I'm hoping this was an ad-blocker issue! Closing.

Lool after I struggled for years.. I have found a Solution to This
The course is. First I use my google chrome which I saved my Github account with.
So my VS was taking me to Microsoft Edge and get the button disabled.

All you have to do is to change you Default browser on your machine to the one u have signed is with on github

Thank you very mutch "SenzoNgele" ....it worked.

Just opened devtools and removed "disabled" attribute in html, and it worked!

Was this page helpful?
0 / 5 - 0 ratings