nextcloud-server/tests/lib
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 +07:00
..
Accounts fix email verification status 2017-04-28 23:41:37 +07:00
Activity
App Add new bundle 2017-07-26 11:47:15 +07:00
AppFramework Make BruteForceProtection annotation more clever 2017-04-13 23:05:33 +07:00
Archive
Authentication Merge pull request #4894 from nextcloud/generic-security-activities 2017-05-19 00:50:44 +07:00
BackgroundJob Add duration of last job execution to the table 2017-04-25 17:39:58 +07:00
Cache Make cache tests a bit more clear 2017-05-04 19:37:40 +07:00
Command Add proper tests 2016-12-19 15:35:31 +07:00
Comments Can not insert auto increment on oracle 2017-08-03 16:40:00 +07:00
Contacts/ContactsMenu Do not show an email action for contacts with emtpy email addresses 2017-05-02 14:12:04 +07:00
DB Fix querybuilder and functionbuilder tests 2017-08-03 16:40:35 +07:00
Diagnostics Adjust query/event logging code in favour of more complex owncloud/diagnostics (#27643) 2017-04-26 13:19:43 +07:00
Encryption Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +07:00
Federation clean cloud ids 2017-02-09 13:31:06 +07:00
Files Can not insert auto increment on oracle 2017-08-03 16:40:00 +07:00
GlobalScale add new config switched for the global scale architecture 2017-06-02 11:00:08 +07:00
Group Fix 5.6 duplicate class import 2017-03-17 13:54:58 +07:00
Hooks
Http/Client Merge pull request #2912 from nextcloud/increase-coverage-response.php 2017-01-02 16:01:47 +07:00
IntegrityCheck Add proper tests 2016-12-19 15:35:31 +07:00
L10N Don't force the use of Accept-Language anymore 2017-04-07 11:10:04 +07:00
Lock
Lockdown Save the scope of an auth token in the session 2017-04-05 17:58:33 +07:00
Log Delete the correct config value 2017-04-20 12:23:12 +07:00
Mail Rename renderHTML to renderHtml 2017-04-19 15:46:41 +07:00
Memcache Make cache tests a bit more clear 2017-05-04 19:37:40 +07:00
Migration
Notification
OCS add tests for discovery service 2017-04-11 15:04:01 +07:00
Preview fix preview tests 2017-05-02 13:43:48 +07:00
PublicNamespace
Repair Fix last failures with oracle 2017-08-03 16:40:46 +07:00
RichObjectStrings
Security Write cert bundle to tmp file first 2017-07-12 20:21:27 +07:00
Session
Settings Rename “Server settings” to “Basic settings” 2017-04-29 17:13:21 +07:00
Share Fix last failures with oracle 2017-08-03 16:40:46 +07:00
Share20 Send an email once a file/folder is shared with a user 2017-08-01 15:17:32 +07:00
SystemTag test setTagGroups with empty groupids 2017-03-19 22:01:46 +07:00
Template Fix tests 2017-07-02 14:03:36 +07:00
Traits
Updater
User emit changeUser only if there really was a change (quota, displayname) 2017-06-01 13:08:23 +07:00
Util
APITest.php
AllConfigTest.php Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +07:00
AppConfigTest.php Fix tests 2017-01-12 10:49:22 +07:00
AppTest.php Fix tests 2017-05-20 17:15:19 +07:00
AutoLoaderTest.php
AvatarManagerTest.php
AvatarTest.php
CapabilitiesManagerTest.php
ConfigTest.php Check for boolean false and add tests 2017-04-04 15:56:50 +07:00
ContactsManagerTest.php
DateTimeFormatterTest.php
ErrorHandlerTest.php
FileChunkingTest.php
FilesTest.php
HTTPHelperTest.php
HelperStorageTest.php fix quota tests for external storage 2017-05-12 11:32:16 +07:00
HookHelper.php
ImageTest.php Use 90% JPEG quality for thumbnails and previews by default 2017-02-22 14:53:15 +07:00
InfoXmlTest.php Add the AppContainer 2017-03-22 11:24:16 +07:00
InstallerTest.php Adjust tests 2017-04-26 20:07:51 +07:00
LargeFileHelperGetFileSizeTest.php
LargeFileHelperTest.php
LegacyHelperTest.php
LoggerTest.php Better fallback for unknown log types 2017-01-10 12:59:13 +07:00
NaturalSortTest.php
NavigationManagerTest.php Properly allow \OCP\Authentication\IApacheBackend to specify logout URL 2017-08-30 14:42:46 +07:00
RepairStepTest.php Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +07:00
ServerTest.php
SetupTest.php Move OC_Defaults to OCP\Defaults 2017-04-09 21:43:01 +07:00
SubAdminTest.php
TagsTest.php
TempManagerTest.php
TemplateFunctionsTest.php
TestCase.php Move OC_Defaults to OCP\Defaults 2017-04-09 21:43:01 +07:00
TestMoveableMountPoint.php
UpdaterTest.php Prevent migration from ownCloud 11 to Nextcloud 12 2017-01-23 12:04:46 +07:00
UrlGeneratorTest.php Add tests and inject IRequest 2017-07-02 14:03:35 +07:00
UserTest.php Remove warning 2017-01-05 12:17:30 +07:00
UtilCheckServerTest.php Use SystemConfig instead of AllConfig for DB stuff 2017-03-19 15:53:49 +07:00
UtilTest.php Use regex to detect part files 2017-04-26 16:12:48 +07:00