CodeHub icon indicating copy to clipboard operation
CodeHub copied to clipboard

Cannot login github account

Open housiliao opened this issue 7 years ago • 14 comments

codehub_error Authorize button is disabled.

housiliao avatar Apr 25 '18 09:04 housiliao

Have you tried updating your iPhone to the latest version of iOS?

garrettw avatar Apr 25 '18 12:04 garrettw

@housiliao that Authorize button actually belongs to GitHub. CodeHub simply forwards you to their OAuth portal for authentication. The fact you cannot press the button may suggest that their site does not support your browser - what version of iOS are you on?

thedillonb avatar Apr 25 '18 14:04 thedillonb

That's happened to me before on normal desktop... maybe try refreshing

Chew avatar Apr 26 '18 19:04 Chew

my Authorize button is disabled.too. my version is10.1.1

jydcb003 avatar May 02 '18 02:05 jydcb003

@jydcb003 have you even tried updating your iOS?

garrettw avatar May 02 '18 13:05 garrettw

I've read 2 things about the auth button being greyed out, one from stack overflow.

Says it's a javascript error, so it might just be an error with old iOS.

Chew avatar May 02 '18 14:05 Chew

@housiliao, what version of iOS are you on? @jydcb003 mentioned he was also having trouble with 10.1.1 - I wonder if you also have the same version?

thedillonb avatar May 04 '18 13:05 thedillonb

For old iOS version, you can use HTTP debug proxy tool (such as Charles or Fiddler) to capture the HTTP packet, then set break point for the authorize response and remove the disabled attribute for the button (See picture), then you can click the Authorize button on your iPhone.

image

reinstallsys avatar Jun 07 '18 11:06 reinstallsys

I had the same problem when I tried to log in using another app, GitPoint; the same auth. dialog appears with the greyed-out Authorize button. However, I was able to authorize GitPoint — evidently for any device — by logging in from my Mac at a URL provided in this discussion. It's something like https://github.com/login/oauth/authorize?response_type=token&client_id=.... I think if we can obtain the client_id for CodeHub we could all do the same. @thedillonb ?

GitPoint didn't suffice for my needs to browse code in any branch, so I'd love to get CodeHub running on my 2012 iPad Mini, whose OS cannot be upgraded beyond iOS 9.3.5.

tylerperkins avatar Aug 04 '18 19:08 tylerperkins

@tylerperkins that's a great point. You should be able to authenticate the application with your GitHub user account just by visiting the following link in your browser:

https://github.com/login/oauth/authorize?client_id=72f4fb74bdba774b759d&redirect_uri=http%3A%2F%2Fdillonbuchanan.com%2F&scope=user%3Afollow%2Crepo%2Cnotifications%2Cgist%2Cread%3Aorg

Authenticating with it will redirect you to my personal site with a code, but you can ignore that since the code for the browser is worthless. However, you should then be able to go into the CodeHub app, try and authenticate with your username and it should just accept you - since you already granted it permissions via the browser trick we did above

thedillonb avatar Aug 08 '18 00:08 thedillonb

Thanks sooo much, @thedillonb! That's exactly what I had in mind. It worked great and I'm now able to use the app. This work-around should perhaps be published in the README.md or the project's webpage. I'm sure there are many users of old iOS devices like me, but Github appears to have no interest in debugging their code for them.

tylerperkins avatar Aug 12 '18 16:08 tylerperkins

Hey @reinstallsys, you're pretty slick with the http protocol. 👍🙌🆒

Doug®

Grossdm avatar Aug 24 '18 01:08 Grossdm

Thanks @thedillonb, your work around supplied above worked really well! marvellous. I have an old iPhone stuck on iOS 9, so can't upgrade to the latest iOS.

synaptrec avatar Sep 14 '18 15:09 synaptrec

Cant log too Disabled button Ipad ios9.3.5

webmasterproxy-media avatar Aug 08 '20 04:08 webmasterproxy-media