我使用的是rainloop提供的SSO示例,但它对我不起作用,它总是将我重定向到登录页面,尽管它的预期行为应该会绕过使用SSO散列的登录。我已经检查了我的SSO正在生成..
// Enable RainLoop Api and include index file
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
include '../../rainloop/index.php';
$email = 'user@yourdomain.com';
$pass = 'testtest';
$ssoHash = \RainLoop\Api::GetUserSsoHash($email, trim($pass));
header('Location: http://yourdomain.com/rainloop/?sso&hash='.$ssoHash);发布于 2019-11-16 04:20:51
您必须确保PHP文件中包含的rainloop安装与处理标头中重定向到的SSO请求的安装相同。这意味着您不能处理不同服务器之间的SSO。
https://stackoverflow.com/questions/56039591
复制相似问题