Why is the GitHub authorization button in the OAuth flow greyed out?

I am creating an Android app that subscribes to GitHub users using OAuth. I followed the instructions here . As the first part of the process, I sent users to the url

https://github.com/login/oauth/authorize?scope=repo&client_id=MY_CLIENT_ID

      

However, when I log in on my Android device, the button Authorize xxxx

appears grayed out and I cannot click it. Does anyone know why this is? (Large screenshot below)

I think the button may not have been crossed out before when I first launched the app and signed up. However, I cannot say for sure because I was in a hurry.

+3


source to share


1 answer


So, I pasted the link in Chrome on my computer and the OAuth process worked fine. I noticed that the button was first crossed out, but then turned bright green. I'm wondering: Was JavaScript enabled by default in Android WebView? Of course this was not the case. I found this answer detailing how to enable JS. This was the key line in which everything works:



webView.getSettings().setJavaScriptEnabled(true);

      

+3


source







All Articles