nextcloud/lib/private/connector/sabre
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
..
exception Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
appenabledplugin.php Fix type hinting for app manager 2014-11-18 12:22:13 +01:00
auth.php Prioritise Basic Auth header over Cookie 2015-01-17 13:29:07 +01:00
directory.php Merge pull request #12865 from owncloud/files-tags-webdav 2014-12-19 09:33:28 +01:00
exceptionloggerplugin.php Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
file.php remove unused variable and fix undefined variable 2015-01-08 09:46:40 +01:00
filesplugin.php adding getDirectDownload() to Wrapper 2014-12-28 17:17:14 +01:00
locks.php Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
maintenanceplugin.php Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
node.php Returns and update tags through WebDAV PROPFIND and PROPPATCH 2014-12-17 16:50:35 +01:00
objecttree.php Add getMountPoint to FileInfo 2014-12-17 14:03:50 +01:00
principal.php Use namespace 2015-01-05 09:54:14 +01:00
quotaplugin.php Convert StorageNotAvailableException to SabreDAV exception 2014-11-10 12:01:24 +01:00
request.php Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
server.php Returns and update tags through WebDAV PROPFIND and PROPPATCH 2014-12-17 16:50:35 +01:00
taglist.php Fix code style issues for tags plugin 2014-12-18 16:43:00 +01:00
tagsplugin.php Fix code style issues for tags plugin 2014-12-18 16:43:00 +01:00