nextcloud/apps/files_encryption
Lukas Reschke dfbc405a45 Prioritise Basic Auth header over Cookie
There are a lot of clients that support multiple WebDAV accounts in the same application. However, they resent all the cookies they received from one of the accounts also to the other one. In the case of ownCloud this means that we will always show the user from the session and not the user that is specified in the basic authentication header.

This patch adds a workaround the following way:

1. If the user authenticates via the Sabre Auth Connector add a hint to the session that this was authorized via Basic Auth (this is to prevent logout CSRF)
2. If the request contains this hint and the username specified in the basic auth header differs from the one in the session relogin the user using basic auth

Fixes https://github.com/owncloud/core/issues/11400 and https://github.com/owncloud/core/issues/13245 and probably some other issues as well.

This requires proper testing also considering LDAP / Shibboleth and whatever instances.
2015-01-17 13:29:07 +01:00
..
ajax Update OCA\Encryption to OCA\Files_Encryption in the encryption app itself 2014-12-09 09:47:26 +01:00
appinfo Remove unneeded addTranslations() calls 2015-01-14 14:36:23 +01:00
css Add _many_ newlines at the end of files 2013-08-18 11:06:59 +02:00
exception Fix namespace of files_encryption classes and autoload them 2014-12-09 09:47:26 +01:00
files Update OCA\Encryption to OCA\Files_Encryption in the encryption app itself 2014-12-09 09:47:26 +01:00
img introduce new app page layout 2014-10-15 15:21:40 +02:00
js Improved Javascript docs for JSDoc 2014-10-31 13:43:30 +01:00
l10n [tx-robot] updated from transifex 2015-01-17 01:54:40 -05:00
lib Merge pull request #13288 from owncloud/enc_fix_public_download 2015-01-14 11:55:13 +01:00
templates Update OCA\Encryption to OCA\Files_Encryption in the encryption app itself 2014-12-09 09:47:26 +01:00
tests Prioritise Basic Auth header over Cookie 2015-01-17 13:29:07 +01:00
settings-admin.php Update OCA\Encryption to OCA\Files_Encryption in the encryption app itself 2014-12-09 09:47:26 +01:00
settings-personal.php Merge pull request #12568 from owncloud/autoload-encryption-classes 2014-12-09 12:56:57 +01:00