nextcloud/core/templates
Lukas Reschke 245080e647
Properly allow \OCP\Authentication\IApacheBackend to specify logout URL
Any `\OCP\Authentication\IApacheBackend` previously had to implement `getLogoutAttribute` which returns a string.
This string is directly injected into the logout `<a>` tag, so returning something like `href="foo"` would result
in `<a href="foo">`.

This is rather error prone and also in Nextcloud 12 broken as the logout entry has been moved with
054e161eb5 inside the navigation manager where one cannot simply inject attributes.

Thus this feature is broken in Nextcloud 12 which effectively leads to the bug described at nextcloud/user_saml#112,
people cannot logout anymore when using SAML using SLO. Basically in case of SAML you have a SLO url which redirects
you to the IdP and properly logs you out there as well.

Instead of monkey patching the Navigation manager I decided to instead change `\OCP\Authentication\IApacheBackend` to
use `\OCP\Authentication\IApacheBackend::getLogoutUrl` instead where it can return a string with the appropriate logout
URL. Since this functionality is only prominently used in the SAML plugin. Any custom app would need a small change but
I'm not aware of any and there's simply no way to fix this properly otherwise.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-30 14:42:46 +02:00
..
filetemplates Fix #24655 2016-05-17 20:43:02 +02:00
loginflow remove 'Alternative login using app token' in case of oauth login 2017-05-18 20:49:05 +02:00
lostpassword Update email template for lost password email 2017-04-12 15:19:53 -05:00
403.php Add unit testing capabilities for templates (#23708) 2016-04-12 12:49:11 +02:00
404.php Move OC_Defaults to OCP\Defaults 2017-04-09 21:43:01 -05:00
error.php Replace unecessary unescaped prints with print 2017-03-29 00:43:44 +02:00
exception.php Move away from OC_L10N 2016-10-28 21:46:28 +02:00
filepicker.html show empty folder message in filepicker 2016-10-21 16:35:55 +02:00
installation.php Fix value of attribute "autocapitalize" 2017-03-18 16:06:57 +01:00
layout.base.php rename confusing getMailHeaderColor to getColorPrimary, ref #3491 2017-03-29 18:23:23 +02:00
layout.guest.php Check if Nextcloud is installed 2017-05-08 15:10:53 +02:00
layout.noscript.warning.php Deduplicate template code and do not translate the links 2015-02-09 16:01:52 +01:00
layout.user.php Fixes nextcloud/gallery#269 2017-08-14 22:21:42 +02:00
login.php Merge login JS 2017-03-24 21:18:24 +01:00
message.html Remove uninterpreted PHP 2016-08-19 14:24:26 +02:00
tags.html addressing #14982 self-closing tags ending slash doesn't have a purpose & should be removed 2015-03-17 23:57:23 +01:00
twofactorselectchallenge.php Properly allow \OCP\Authentication\IApacheBackend to specify logout URL 2017-08-30 14:42:46 +02:00
twofactorshowchallenge.php Properly allow \OCP\Authentication\IApacheBackend to specify logout URL 2017-08-30 14:42:46 +02:00
untrustedDomain.php Initial work on Apps page split: 2016-08-09 18:05:09 +02:00
update.admin.php reduce info on update screens, introduce button to refresh 2016-08-04 12:48:25 +02:00
update.use-cli.php Allow to enforce update via web UI 2017-05-11 10:22:44 -05:00
update.user.php addressing #14982 self-closing tags ending slash doesn't have a purpose & should be removed 2015-03-17 23:57:23 +01:00