zendframework/modules.zendframework.com

Login from zfmodules.com via github doesn't seem to work

heiglandreas opened this issue Β· 32 comments

Sorry to say, but I encounter an error-message when I try to log in via github.

To reproduce:

Open http://zfmodules.com and click onto the "Github login" link.

I then see the URL http://www.zfmodules.com/user/login/github being called and the server returns

This view is generated by the Error Module
 An error occurred
An error occurred during execution; please try again later.

Or is that just me having misconfigured my machine?

It also occurs on any module info page /<vendor>/<modulename>...

Duplicate of #251.

GeeH commented

it's weird, the github application actually has the right callback url. I'm stumped.

ins0 commented

@GeeH is the redirect url with url path or just the host? so it should be only http://modules.zendframework.com/ as callback

GeeH commented

Which is exactly what it is!

On 24 January 2015 at 19:49:29, Marco Rieger (notifications@github.com) wrote:

@GeeH is the redirect url with url path or just the host? so it should be only http://modules.zendframework.com/ as callback

β€”
Reply to this email directly or view it on GitHub.

ins0 commented

go home github api you're drunk 🍻 ok don't know what else could be the reason for this strange behavior.

may register a new application and give it a try?

ins0 commented

@GeeH don't know where but the redirect to github looks on production like this https://github.com/login/oauth/authorize?client_id=XXXXXXXXX&redirect_uri=http%3A%2F%2Fzfmodules.com%2Fscn-social-auth%2Fhauth%3Fhauth.done%3DGitHub&response_type=code&scope=user%2C+public_repo%2C+ so the github application configured is not from the github account where u lookup the url or somewhere in the project folder overrides the redirect url.

zfmodules.com

GeeH commented

OK, I need to figure out where that url is configured, and how to fix it; thanks!

On 25 January 2015 at 03:01:26, Marco Rieger (notifications@github.com) wrote:

@GeeH don't know where but the redirect to github looks on production like this https://github.com/login/oauth/authorize?client_id=e00c0cc9c5eab5a04653&redirect_uri=http%3A%2F%2Fzfmodules.com%2Fscn-social-auth%2Fhauth%3Fhauth.done%3DGitHub&response_type=code&scope=user%2C+public_repo%2C+ so the github application configured is not from the github account where u lookup the url or somewhere in the project folder overrides the redirect url.

β€”
Reply to this email directly or view it on GitHub.

Hi @GeeH! Have you news for this problem?
Thanks!

@heiglandreas

I understand this issue as this

Scenario 1

GET /scn-social-auth/hauth?hauth.start=GitHub&hauth.time=1424353660 HTTP/1.1
Host: zfmodules.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Connection: keep-alive
Cookie: PHPSESSID=foo
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
Accept-Language: en-us
Referer: http://zfmodules.com/
Accept-Encoding: gzip, deflate

HTTP/1.1 302 Moved Temporarily
Server: nginx/1.2.1
Date: Thu, 19 Feb 2015 13:47:40 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: https://github.com/login/oauth/authorize?client_id=e00c0cc9c5eab5a04653&redirect_uri=http%3A%2F%2Fzfmodules.com%2Fscn-social-auth%2Fhauth%3Fhauth.done%3DGitHub&response_type=code&scope=user%2C+public_repo%2C+
GET /?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch HTTP/1.1
Host: modules.zendframework.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Connection: keep-alive
Cookie: PHPSESSID=foo
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
Accept-Language: en-us
Referer: http://zfmodules.com/
Accept-Encoding: gzip, deflate

But we also have

Scenario 2

GET /scn-social-auth/hauth?hauth.start=GitHub&hauth.time=1424353379 HTTP/1.1
Host: modules.zendframework.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Connection: keep-alive
Cookie: PHPSESSID=foo
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
Accept-Language: en-us
Referer: http://modules.zendframework.com/
Accept-Encoding: gzip, deflate

HTTP/1.1 302 Moved Temporarily
Date: Thu, 19 Feb 2015 13:42:59 GMT
Server: nginx/1.2.1
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: https://github.com/login/oauth/authorize?client_id=e00c0cc9c5eab5a04653&redirect_uri=http%3A%2F%2Fzfmodules.com%2Fscn-social-auth%2Fhauth%3Fhauth.done%3DGitHub&response_type=code&scope=user%2C+public_repo%2C+
Content-Length: 0
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
GET /?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch HTTP/1.1
Host: modules.zendframework.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Connection: keep-alive
Cookie: PHPSESSID=foo
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
Accept-Language: en-us
Referer: http://modules.zendframework.com/
Accept-Encoding: gzip, deflate

Not sure what's the actual deal with this.

What I can tell from Scenario 1 (redirects to http://modules.zendframework.com) and also from #296 (comment), at least Scenario 2 should work.

ins0 commented

just pointing out #296 (comment)

notice -> http%3A%2F%2Fzfmodules.com%2Fscn-social- [...]

@ins0

Good catch, updating my comment above!

@Ocramius @GeeH

Can you have a look? I know the two of you are really busy, but we need to get this sorted out!

GeeH commented

If you can tell me what I need to do in simple terms I will do it asap 🌡

ins0 commented

@GeeH Hard to say whitout access to the server. Can u confirm that the used Github Token in the Config files is equal to the Github Application where you edit the Callback Url? Maybe Config Cache?

// Edit
It looks like the Application currently used is registered over https://github.com/ZF-Commons

GeeH commented

@localheinz can I get you access to the server; would that work better?

ins0 commented

@GeeH just talked about this on IRC with @localheinz that would make things alot easier if andreas agrees πŸ‘

GeeH commented

@localheinz I'll get this sorted with Kairos if you're ok with it

@GeeH

πŸ‘

@GeeH

Got access now!

However, what is apparent from #296 (comment):

screen shot 2015-02-20 at 13 09 17

Sorry to bug you with this, but can you please have a look at the GitHub Application setting again?
It should be http://modules.zendframework.com

EDIT

Actually, I have no idea which would be the first address you would go to,

So, no πŸ”‘ at the moment!

GeeH commented

yes, I’ll bug @akrabat after his talk

On 20 February 2015 at 12:11:14, Andreas MΓΆller (notifications@github.com) wrote:

@GeeH

Got access now!

However, what is apparent from #296 (comment):

Sorry to bug you with this, but can you please have a look at the GitHub Application setting again?

β€”
Reply to this email directly or view it on GitHub.

@GeeH

Cool, you are πŸ‘‘!

πŸŽ‰ !!! :D

ins0 commented

HYPE πŸ‘

GeeH commented

e47a71a9

ins0 commented

if the client id of the application is equal to e00c0cc9c5eab5a04653 we should ask for github support, this is too strange.

running out of suggest ideas, if on our side nothing is wrong as said

GeeH commented

I’ve confirmed the client ID and secret are correct

On 21 February 2015 at 16:11:18, Marco Rieger (notifications@github.com) wrote:

if the client id is equal to e00c0cc9c5eab5a04653 we should ask for github support, this is too strange

β€”
Reply to this email directly or view it on GitHub.

Great news, thanks to @weierophinney we now have a new GitHub application under the realm of zendframework and are able to sign in, at least when going to http://zfmodules.com.

Looking into redirecting from http://modules.zendframework.com to http://zfmodules.com.

Forgot to add some πŸŽ‰!

πŸŽ‰ beautifullll stuff!

@weierophinney has also set up a redirect from http://modules.zendframework.com to http://zfmodules.com

Closing! 🍰