【问题标题】:Authenticate rainloop with SSO使用 SSO 验证 Rainloop
【发布时间】: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


    【解决方案1】:

    您必须确保包含在 PHP 文件中的 Rainloop 安装与处理您在标头中重定向到的 SSO 请求相同。这意味着您无法处理不同服务器之间的 SSO。

    【讨论】:

      猜你喜欢
      • 2023-02-02
      • 2013-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-02
      • 2021-03-01
      • 2023-03-22
      • 1970-01-01
      相关资源
      最近更新 更多