At commit:40a50a0
In lib/openid.php
It looks like a number of possible errors culminating in a "no idea which user" condition are handled with "log something and proceed". I think we need to abandon ship at this point, presumably redirecting with an auth_error session var like in the earlier $resp->error
condition.
if (!$id_payload->sub) {
error_log(json_encode($id_payload));
}
(After this the errors seem relatively benign: "don't know your full name" etc.)
I'm not sure what the best error message is here, but surely it shouldn't say OpenID:
if (!$resp) {
error_log(json_encode($http_response_header));
$_SESSION["auth_error"] = "Error: not a valid OpenID.";
In public_html/openid_verify_oauth2.php
I suspect this regexp was meant to have a ^
anchor:
if (ereg ("/[^:]*$", $_REQUEST["return_url"], $regs))