I enabled user_saml app in nextcloud and using an environment variable and mod_auth_cas i managed to make it authenticate users with CAS (SSO service), but the problem is that the logout doesn’t work, the page just reloads (to be more detailed it goes to logout page, doesn’t logout successfully, redirects to login page and since i was not successfully logged out, it redirects to the page with my files).
I saw some people write their own logout pages and i found an example. Does anyone know where to find the file for the logout page or how can i replace it?
The way i found those $_SESSION values is: while logged into Nextcloud, right-click on page -> inspect -> application -> expand “Cookies” -> https://nextcloud.domain.com
This should show you the values you need to unset for the logout. Hope this helps.
PS: I had one Nextcloud server where I had MOD_AUTH_CAS_S and other server where I had MOD_AUTH_CAS. That’s why i put both values.
Ok, you´re right, the _SESSION values are set, perhaps included in this encrypted_session_data variable.
Anyway, with your code, i get logged out as far as the cas is concerned, but not Nextcloud. I can say that the CAS is working as intended, but somehow Nextcloud still reads the enviroment variable.
Do you use “REMOTE_USER” or “HTTP_CAS_USER” as your environment variable for mod_auth_cas? Not sure why a lot of examples for this topic use “HTTP_CAS_USER” instead of the default.