在WSO2 Identity Server中启用一次注销,然后重定向到自定义登录页面 [英] Enable Single Logout in WSO2 Identity server and redirect to custom login page

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

问题描述

我正在使用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.

我还需要其他配置吗?

Do I need any other configuration too?

推荐答案

您正在根据给定的请求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 Identity Server中启用一次注销,然后重定向到自定义登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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