zend framework - Zend_OpenId with Codeigniter -
i using openid library zend codeigniter , working fine except verify function.
$status = ""; if (isset($_post['openid_action']) && $_post['openid_action'] == "login" && !empty($_post['openid_identifier'])) { $consumer = new zend_openid_consumer(); if (!$consumer->login($_post['openid_identifier'])) { $status = "openid login failed."; } } else if (isset($_get['openid_mode'])) { if ($_get['openid_mode'] == "id_res") { $consumer = new zend_openid_consumer(); if ($consumer->verify($_get, $id)) { $status = "valid " . htmlspecialchars($id); } else { $status = "invalid " . htmlspecialchars($id); } } else if ($_get['openid_mode'] == "cancel") { $status = "cancelled"; } }
the openid library needs zend session start included library. able to: enter openid, redirected 'openid-provider', validate there, , redirected back.
however, not able retrieve 'openid_mode', i'm not able 'verify' info. don't understand i'm doing wrong. purely library not work ci without heavy hacking?
have tried codeigniter’s openid library?
Comments
Post a Comment