我使用forceAuthentication函数获得了常规的cas身份验证,现在我想用更新身份验证来阻止单点登录,但它一直卡在循环中。
以下是我的代码
require_once 'CAS/CAS.php';
phpCAS::setDebug();
phpCAS::client(CAS_VERSION_2_0, $cas_host, $cas_port, $cas_context, false);
phpCAS::setNoCasServerValidation();
phpCAS::renewAuthentication();
$user = phpCAS::getUser()
echo "welcome $user";我使用的是phpcas的最新版本: 1..33。
发布于 2015-08-20 16:15:55
使用以下代码:
phpCAS::client(CAS_VERSION_2_0, $cas_host, $cas_port, $cas_context, false)而不是这一行:
phpCAS::client(CAS_VERSION_2_0, $cas_host, $cas_port, $cas_context);https://stackoverflow.com/questions/26124399
复制相似问题