Bug 47044 - Logout from nextcloud should lead to UCS portal
Logout from nextcloud should lead to UCS portal
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks: 46934
  Show dependency treegraph
 
Reported: 2018-05-22 22:26 CEST by Daniel Tröder
Modified: 2021-05-14 16:50 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2018-05-22 22:26:08 CEST
+++ This bug was initially created as a clone of Bug #46936 +++

When logging out of the Nextcloud App, the user should land at the UCS portal, instead of the login page.
Comment 1 Daniel Tröder univentionstaff 2018-05-22 22:26:56 CEST
It may be possible to implement this with a hook.

There is a new postLogout() hook in NC, that I found in /var/www/html/lib/private/User/Session.php. It seems to not yet be documented, but it is emited in the source code:

--------------------------------------------------
 * Hooks available in scope \OC\User:
[..]
 * - postLogout()
--------------------------------------------------

This might be used to add a redirect to the logout page:

Location: https://<FQDN>univention/portal/


Not sure how to do this, as I don't know PHP, but the docs are here: https://docs.nextcloud.com/server/13/developer_manual/api/OC/Share20/Hooks.html
Comment 2 Ingo Steuwer univentionstaff 2021-05-14 16:50:55 CEST
should be still relevant for UCS 4.4