Confluence 使用 SSO 注销
我已经为融合编写了自己的 seraph 自定义验证器。我可以从我的系统登录,并且 confluence 能够识别出我已登录。到目前为止一切都很好。问题是当我尝试注销时。我尝试在 seraph-config.xml 中设置 logout.url,但这只是将用户重定向到我的注销页面,但不会从 confluence 中注销用户。然后我尝试通过覆盖自定义验证器类中的注销方法来删除所有 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定您是否已经看到这个开放的bug。
JASIG:
要依靠单点注销功能来注销 Confluence,我们需要修改注销链接:
将 $CONFLUENCE_INSTALL/WEB-INF/lib/confluence-xxxjar 复制到临时目录
mkdir /tmp/confluence-jar && cp WEB-INF/lib/confluence-3.0.1.jar /tmp/confluence-jar
解压 jar
cd /tmp/confluence-jar && jar xvf confluence-3.0.1.jar
将xwork.xml复制到$CONFLUENCE_INSTALL/WEB-INF/classes
编辑$CONFLUENCE_INSTALL/WEB-INF/classes/xwork.xml,找到注销动作,注释掉成功结果并将其替换为以下内容:
$CONFLUENCE_INSTALL/WEB-INF/classes/xwork.xml
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
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