【发布时间】:2019-05-08 11:20:04
【问题描述】:
我正在使用 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);
【问题讨论】:
标签: php api single-sign-on webmail