简体   繁体   English

使用SSO退出合流

[英]Confluence Logout using SSO

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. 我可以从我的系统登录,Confluence能够识别出我已经登录。到目前为止一切正常。 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. 我试图在seraph-config.xml中设置logout.url,但是这只是将用户重定向到我的注销页面,但没有使用户从汇合中注销。 Then I tried to delete all cookies by overriding the logout method in my custom authenticator class however that doesnt seem to work either. 然后,我尝试通过覆盖自定义身份验证器类中的注销方法来删除所有cookie,但是这似乎也不起作用。 The method is called, but the user is not logged out. 该方法被调用,但是用户未注销。 Can anybody help me? 有谁能够帮助我?

Not sure if you saw this open bug already. 不知道您是否已经看到此打开的错误

A workaround from JASIG : JASIG的解决方法:

To rely on the Single Sign Out functionality to sign off of Confluence we need to modify the logout link: 要依靠单一注销功能来注销Confluence,我们需要修改注销链接:

Copy $CONFLUENCE_INSTALL/WEB-INF/lib/confluence-xxxjar to a temporary directory 将$ CONFLUENCE_INSTALL / WEB-INF / lib / confluence-xxxjar复制到临时目录

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

Unpack the jar 打开罐子的包装

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

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

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

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,找到注销操作并注释掉成功结果,并将其替换为以下结果:

$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 -->

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM