使用SSO退出合流 [英] Confluence Logout using SSO

查看:118
本文介绍了使用SSO退出合流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了我自己的六翼天使自定义身份验证器进行融合。我可以从我的系统登录,Confluence能够识别出我已经登录。到目前为止一切正常。问题是当我尝试注销时。我试图在seraph-config.xml中设置logout.url,但是这只是将用户重定向到我的注销页面,但没有使用户从汇合中注销。然后,我尝试通过覆盖自定义身份验证器类中的注销方法来删除所有cookie,但是这似乎也不起作用。该方法被调用,但是用户未注销。有人可以帮我吗?

I have written my own seraph custom authenticator for confluence. I can login from my system and confluence is able to recognize that I am logged in. Everything is fine so far. The problem is when I try to logout. I tried to set the logout.url in the seraph-config.xml, however that simply redirects the user to my logout page, but doesnt logout the user from confluence. Then I tried to delete all cookies by overriding the logout method in my custom authenticator class however that doesnt seem to work either. The method is called, but the user is not logged out. Can anybody help me?

推荐答案

不确定您是否看到了这个打开的错误

Not sure if you saw this open bug already.

来自 JASIG

要依靠Single Sign Out功能注销Confluence,我们需要修改注销链接:

To rely on the Single Sign Out functionality to sign off of Confluence we need to modify the logout link:

复制$ CONFLUENCE_INSTALL / WEB-INF / lib / confluence -xxxjar到临时目录

Copy $CONFLUENCE_INSTALL/WEB-INF/lib/confluence-x.x.x.jar to a temporary directory

mkdir / tmp / confluence-jar&& cp WEB-INF / lib / confluence-3.0.1.jar / tmp / confluence-jar

打开罐子包装

cd / tmp / confluence-jar&& jar xvf confluence-3.0.1.jar

将xwork.xml复制到$ CONFLUENCE_INSTALL / WEB-INF / classes

Copy xwork.xml to $CONFLUENCE_INSTALL/WEB-INF/classes

cp xwork.xml $CONFLUENCE_INSTALL/WEB-INF/classes/ && cd $CONFLUENCE_INSTALL/WEB-INF/classes/

编辑$ CONFLUENCE_INSTALL / WEB-INF / classes / xwork .xml,找到注销操作并注释掉成功结果,并用以下结果替换:

Edit $CONFLUENCE_INSTALL/WEB-INF/classes/xwork.xml, find the logout action and comment out the success result and replace it with this one:

$ CONFLUENCE_INSTALL / WEB-INF / classes / xwork.xml

    <!-- <result name="success" type="velocity">/logout.vm</result> -->
    <!-- CAS:START - CAS Logout Redirect -->
                <result name="success" type="redirect"></result>
    <!-- CAS:END -->

这篇关于使用SSO退出合流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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