discoursesso
discoursesso copied to clipboard
Logging out of Nextcloud upon loging our of discourse
Is it possible to logout of nextcloud when loging out of discourseat all? One can set a logout redirect from discourse at
https://YOUR_DISCOURSE_INSTANCE/admin/site_settings/category/all_results?filter=logout
However setting it to
https://YOUR_NEXTCLOUD_INSTANCE/logout
fails because of a CSRF check.
That can be turned off by editing source code of NExtcloud very as per easily: https://github.com/nextcloud/user_saml/issues/114#issuecomment-2053672055 but that sounds decidedly hacky.
Any ideas how this could be implemented? OR is it waiting for solving the issue on Nextcloud side?
Oh, and by the way, is logging out of Discourse when one logs out of Nextcloud implemented or not? It seems to me from my limited testing that it is not. As per: https://meta.discourse.org/t/synchronize-sso-login-state-between-discourse-and-provider/60464#synchronize-state-from-discourse-to-website-5
It used to work, but broke a couple of NC releases back. I haven't found the time to fix this, but it's on my agenda