nextcloud/lib
Lukas Reschke 1c75b73239 Verify authentication before initializing apps and routing
The current behaviour of the authenticion logic in base.php prevents REST APIs in ownCloud applications to work.

Because `!self::$CLI` is usually always a true statement the previously above block was entered which returned, thus the authentication logic for this part does not trigger in.

This can be reproduced by installing apps such as the News app and issuing the following command:

`curl -u admin:admin http://localhost/index.php/apps/news/api/v1-2/feeds`

The following parts needs to get throughly tested:

- [ ] OCS
- [ ] remote.php's DAV features
- [ ] Regular login features

This bug affects master and stable7. I'd propose that we merge this for 8.0 since this has the potential to break every component that relies on Basic Auth features. A backport would also be very nice.

Remark to myself: We really need to move out the authentication code for 8.1 out of base.php - I already have a local branch that does that somewhere which I will get in shape for 8.1... - This untested code is a night-mare.

Fixes itself.
2015-01-09 21:07:29 +01:00
..
l10n [tx-robot] updated from transifex 2015-01-09 01:55:22 -05:00
private Merge pull request #13192 from owncloud/cache_binary_path 2015-01-09 17:46:36 +01:00
public Merge pull request #12988 from owncloud/logfile_download 2015-01-09 00:33:22 +01:00
repair allow css/js asset directory to be relocated (#13053) 2015-01-05 15:24:23 -08:00
autoloader.php use Composer autoloader not OC for non-Composer 3rdparty (#9643) 2014-10-28 11:32:20 +01:00
base.php Verify authentication before initializing apps and routing 2015-01-09 21:07:29 +01:00