nextcloud/lib
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
..
l10n [tx-robot] updated from transifex 2015-01-17 01:54:40 -05:00
private Prioritise Basic Auth header over Cookie 2015-01-17 13:29:07 +01:00
public Add PHPDoc for `urlParams` 2015-01-15 14:42:44 +01:00
repair Mask table and column names with backticks and add lastInsertID() workaround 2015-01-15 14:43:06 +01:00
autoloader.php use Composer autoloader not OC for non-Composer 3rdparty (#9643) 2014-10-28 11:32:20 +01:00
base.php Add some more sanity checks for maintenance mode 2015-01-09 21:52:16 +01:00