在 WSO2 身份服务器中启用单一注销并重定向到自定义登录页面 [英] Enable Single Logout in WSO2 Identity server and redirect to custom login page

查看:18
本文介绍了在 WSO2 身份服务器中启用单一注销并重定向到自定义登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 WSO2-IS 5.3.0.我已经配置了许多服务提供商,并且 SAML SSO 正在按预期工作.但是当涉及到注销时,一个功能可以正常工作.这意味着它会在会话无效后将我重定向到一个常见的注销页面.

I am using WSO2-IS 5.3.0. I have configured many service provider and SAML SSO is working as expected. But when it comes to Logout, One functionality is working fine. It means it redirects me to a common logout page after an invaliding session.

在这里,我有一个案例,我有一个服务提供商,我需要执行单次注销,但它应该重定向到我的自定义登录页面.虽然 IS 提供了配置返回 URL(SLO 响应 URL)的选项,但您可以在下面的屏幕截图中看到.我已经这样做了,但它仍然重定向到通用注销页面.

Here, I have one case, I have one service provider for it, I need to perform single logout but it should redirect to my custom login page. Though IS providing the option to configure return URL(SLO Response URL) you can see in the below screenshot. I have done that but still its redirects to the common logout page.

我还需要其他配置吗?

推荐答案

您正在按照给定的请求 URL 执行 IdP 发起的 SLO.在这种情况下,您可以在该请求中使用 returnTo 参数来重定向响应.

You are performing an IdP initiated SLO as per the given request URL. In that case, you can use the returnTo parameter in that request to redirect the response.

因此,将 SLO 响应 URL 设置为启用 IdP 启动的 SLO 配置的 return to URL.示例请求如下.

So set the SLO response URL to return to URL of the Enable IdP initiated SLO config. Sample request would be as follow.

https://localhost:9443/samlsso?slo=true&spEntityID=travelocity.com&returnTo=https://localhost:8080/avs.com/slo

但是,您可能必须在请求中定义特定于 SP 的参数.

But, you might have to define the SP specific parameters in the request.

参考:http://daytodayjava.blogspot.com/2015/08/saml2-idp-initiated-single-logout-with.html

这篇关于在 WSO2 身份服务器中启用单一注销并重定向到自定义登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆