After authenticating successfully against Google, I am receiving the following error. I have tried this for multiple applications with the same result.

Thanks,
Chris

Comments

cpliakas’s picture

StatusFileSize
new42.01 KB

Turns out the URL adds the port twice if you are using an alternate port. See the var_dump() of the $data array passed to _google_auth_sub_request(). I confirmed that the "next" key was calculated via _google_auth_next().

cpliakas’s picture

Status: Active » Needs review
StatusFileSize
new553 bytes

The attached patch works for me. It appears that the appropriate port gets added via the $_SERVER['HTTP_HOST'] variable. Not sure if this is standard across web servers, so it definitely needs some review.