【问题标题】:Shibboleth SP logout does not redirect to my correct server URLShibboleth SP 注销未重定向到我正确的服务器 URL
【发布时间】:2020-11-30 01:34:20
【问题描述】:

我最近为我的 IIS Web 服务器和 Microsoft Azure 配置了Shibboleth Service Provider。身份验证就像一个魅力,但我确实在让 Azure 或 Shibboleth 重定向到我正确的本地注销页面时遇到了一些问题。

老实说,我不是 100% 确定注销机制是如何工作的,但是从我的网页上我称之为注销:

https://my.webserver.xyz/Shibboleth.sso/Logout

这实际上会让我在我的应用程序上从 Azure 中注销,但我的问题是它会在注销后显示这个标准的 Shibboleth 注销页面:

Local Logout
Status of Local Logout: Logout completed successfully.
You MUST close your browser to complete the logout process.

但我希望它重定向到 https://my.webserver.xyz/loggedout/ 而不是这个标准信息。 经过更多的故障排除后,我发现我可以像这样添加一个 URL return 参数:

https://my.webserver.xyz/Shibboleth.sso/Logout?return=https://my.webserver.xyz/loggedout/

但这给出了与 Shibboleth 完全相同的本地 HTML 文件。

我知道我可以更改本地 Shibboleth /etc/localLogout.html 文件以重定向到我的注销 URL:

<html>
<head>
<meta http-equiv="Refresh" content="0; url='https://my.webserver.xyz/loggedout/'" />
</head>
</html>

但这似乎是一种糟糕且繁琐的方法,所以我肯定在这里遗漏了一些细节。 如果相关,我将 [Shibboleth][2] v3.1.0.1 与 IIS 和 PHP 一起使用。

谁能告诉我如何直接导航到我的注销页面?

【问题讨论】:

  • 请参考这篇文章,对这个问题进行了深入的描述。 oit.uci.edu/idm/shibboleth/slo另外,这个链接有用吗? stackoverflow.com/questions/30442789/…
  • 抱歉,这些都没有帮助。我的系统可以正确注销,但我的问题是注销重定向是错误的——它应该在注销后重定向到另一个 URL,而不是 Shibboleth 提供的标准 URL。
  • 您能否发布您的更新作为答案,以便它收到(与 Azure 相关的)赞成票?

标签: azure iis shibboleth shibboleth-sp


【解决方案1】:

我将自己回答这个问题,因为没有提出其他解决方案,这似乎对我有用。

我发现了这个问题,因为它似乎是我自己太不耐烦了 ;-) 我想我可能在 Azure 中的配置更改后过早地测试了注销功能,因为 Azure 需要一些时间才能使更改生效。

我现在发现,当我在 Azure https://my.webserver.xyz/Shibboleth.sso/Logout 中配置此 Logout URL 时,它会将我重定向回上述标准 Shibboleth /etc/localLogout.html 注销页面。

当我将 Azure Logout URL 配置为 https://my.webserver.xyz/Shibboleth.sso/Logout?return=https://my.webserver.xyz/loggedout/ 时,它实际上会直接从 Azure 重定向回此页面。

不需要重定向回与 Azure 中配置的 URL 相同的 URL - 您可以在您的网页上有一个类似 https://my.webserver.xyz/Shibboleth.sso/Logout?return=https://my.webserver.xyz/test-123/ 的链接,它会在注销后重定向回此。

这里的士气 - 多一点耐心,并在匆忙进行大量配置更改之前留出一些 Azure 同步时间 :-)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-12
    • 1970-01-01
    • 2021-12-20
    • 2015-01-08
    相关资源
    最近更新 更多