php - CAS Authentication failed! while using ohocas client -
i've setup rubycas-server mysql backend. when tried login via phpcas client, redirected rubycas-server url. but, after entering username & password - got error
cas authentication failed!
you not authenticated.
you may submit request again clicking here.
if problem persists, may contact administrator of site.
can u tell me...whats wrong phpcas client..please me.
this problem comes development servers when use no ssl::setnocasservervalidation();
after using setnocasservervalidation()
, cas client internally calls curl
using https, main cause of error.
so fix go cas library file ../cas/cas/client.php
reach function
private function _readurl($url, &$headers, &$body, &$err_msg){}
and add line
$url = str_replace("https", "http", $url);
as first line of function _readurl(...
please don't in production environment cas recommends use of ssl on production.
Comments
Post a Comment