Confluence Logout using SSO

╄→гoц情女王★ 提交于 2019-12-11 23:26:30

问题


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?


回答1:


Not sure if you saw this open bug already.

A workaround from JASIG:

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

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

Unpack the jar

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

Copy xwork.xml to $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

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


来源:https://stackoverflow.com/questions/2722766/confluence-logout-using-sso

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!