View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004468 | SOGo | GUI | public | 2018-05-16 15:13 | 2019-02-01 15:37 |
Reporter | vbonamy | Assigned To | francis | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | [Server] Linux | OS | CentOS Linux | OS Version | 7.4 |
Product Version | 3.2.10 | ||||
Fixed in Version | 4.0.6 | ||||
Summary | 0004468: CAS Authentication - CAS Session expiration handling with SOGo V3 - CORS | ||||
Description | Troubles with SOGo handling of the CAS Session expiration. Adding some configurations on CAS server to handle Cross-origin resource sharing (CORS) allows us to have a better behavior, but that's not perfect yet. See below. | ||||
Steps To Reproduce | Use a SOGo v3 with a CAS Authentication. -> an infinity loop of http ajax requests occurs (on CAS and SOGo) ... and the browser doesn't detect it ! In console of your browser you can see logs scrolling like this With this, it works better - no more infinity loop, and the cas login form is displayed to the user ... but after log in, regularly, you are not redirected to a sogo web html page but to a sogo web js page like https://sogo.my-univ.fr/SOGo/so/toto/Mail/0/folderINBOX/expunge . This page displays things like : | ||||
Tags | No tags attached. | ||||
Same problem with SOGo v4 (I just tested with 4.0.3). The workaround about handle cors on cas server does not work very well ... and can actually cause an infinite loop ont the cas server, so I remove httpd configurations about this on the cas server. Because of this problem, we continue to use SOGo in version 2 here. |
|
To avoid infinite loop I added this JavaScript (thanks to SOGoUIAdditionalJSFiles) : document.addEventListener("DOMContentLoaded", function() { // Hack for https://sogo.nu/bugs/view.php?id=4468 // start observing }); |
|
Hello, I have the same issue with SOGo 4.0.5 For me this problem is not only related to the logout of the CAS, but also randomly I fix with this rule on my proxypass : But I think it's not a good solution Thank you to check. This problem has existed since 2011 ( https://lists.inverse.ca/sogo/arc/users/2011-07/msg00058.html ) William |
|
If one of you can provide me a temporary account on their system, I could more easily reproduce and fix the problem. Thanks. Contact me in private. |
|
I have a ticket open on inverse.ca/mantis/ Thanks |
|
Please try the next nightly build and let me know if it fixes the problem. Make sure to empty your browser's cache. |
|
Thank you. Our testing sogo v4 contains this modification (== https://github.com/inverse-inc/sogo/tree/master ) now. I had to handle CORS on CAS Server : And with that, there is no infinite redirections loop after CAS logout : if you don't handle CORS on CAS with http headers, there is an infinite loop yet because that getting cas url from ajax call failed [js exception] and so I think $window.attempted is never set to true. Problem is after reauthentication, the page that is displayed can be sometimes javascript page with quota as json (expunge url). I send you video by mail. Thank you. |
|
Salut Vincent, Le dernier commit à corrigé le problème pour ma part (sogo-4.0.5.20190201) William |
|
sogo: master 9596ac2a 2019-01-22 15:34 Details Diff |
(js) Improve CAS handling Fixes 0004468 |
Affected Issues 0004468 |
|
mod - NEWS | Diff File | ||
mod - UI/WebServerResources/js/Common/Common.app.js | Diff File | ||
sogo: master 5cac6696 2019-01-22 18:27 Details Diff |
(js) Improve CAS handling Fixes 0004468 |
Affected Issues 0004468 |
|
mod - UI/WebServerResources/js/Common/Common.app.js | Diff File | ||
sogo: master 3c60e2a7 2019-01-24 13:12 Details Diff |
(js) Improve CAS handling Fixes 0004468 |
Affected Issues 0004468 |
|
mod - UI/WebServerResources/js/Common/Common.app.js | Diff File | ||
sogo: master c13c01ff 2019-01-30 15:55 Details Diff |
(js) Improve CAS handling Fixes 0004468 |
Affected Issues 0004468 |
|
mod - UI/WebServerResources/js/Common/Common.app.js | Diff File | ||
sogo: master 368c13d6 2019-01-31 11:12 Details Diff |
(js) Improve CAS handling Fixes 0004468 |
Affected Issues 0004468 |
|
mod - UI/WebServerResources/js/Common/Common.app.js | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-05-16 15:13 | vbonamy | New Issue | |
2018-10-18 06:42 | vbonamy | Note Added: 0013117 | |
2018-10-22 13:26 | vbonamy | Note Added: 0013122 | |
2019-01-16 07:53 | wix | Note Added: 0013260 | |
2019-01-16 07:55 | wix | Note Edited: 0013260 | |
2019-01-22 14:52 | francis | Note Added: 0013270 | |
2019-01-23 14:25 | wix | Note Added: 0013271 | |
2019-01-24 12:26 | francis | Changeset attached | => sogo master 9596ac2a |
2019-01-24 12:26 | francis | Assigned To | => francis |
2019-01-24 12:26 | francis | Resolution | open => fixed |
2019-01-24 12:30 | francis | Note Added: 0013273 | |
2019-01-24 13:45 | vbonamy | Note Added: 0013278 | |
2019-01-24 16:24 | francis | Changeset attached | => sogo master 5cac6696 |
2019-01-24 18:12 | francis | Changeset attached | => sogo master 3c60e2a7 |
2019-01-30 20:56 | francis | Changeset attached | => sogo master c13c01ff |
2019-01-31 16:12 | francis | Changeset attached | => sogo master 368c13d6 |
2019-02-01 14:00 | wix | Note Added: 0013308 | |
2019-02-01 15:37 | francis | Status | new => resolved |
2019-02-01 15:37 | francis | Fixed in Version | => 4.0.6 |