summaryrefslogtreecommitdiffstats
path: root/apps/remoteStorage/oauth_ro_auth.php
diff options
context:
space:
mode:
authorMichiel de Jong <michiel@unhosted.org>2011-12-07 21:51:47 +0700
committerMichiel de Jong <michiel@unhosted.org>2011-12-07 21:51:47 +0700
commitb9e6f5e42d54fc91205f03f4b19bbf313278f476 (patch)
tree5aeeb1365cb8610574a2a694aa16a04888571d15 /apps/remoteStorage/oauth_ro_auth.php
parenta0548a416a56f6e0fd3269279777d57156c47d15 (diff)
downloadnextcloud-server-b9e6f5e42d54fc91205f03f4b19bbf313278f476.tar.gz
nextcloud-server-b9e6f5e42d54fc91205f03f4b19bbf313278f476.zip
compliance with http://www.w3.org/community/unhosted/wiki/remoteStorage
Diffstat (limited to 'apps/remoteStorage/oauth_ro_auth.php')
-rw-r--r--apps/remoteStorage/oauth_ro_auth.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/remoteStorage/oauth_ro_auth.php b/apps/remoteStorage/oauth_ro_auth.php
index b785d85fead..5403fbe20c9 100644
--- a/apps/remoteStorage/oauth_ro_auth.php
+++ b/apps/remoteStorage/oauth_ro_auth.php
@@ -13,6 +13,7 @@
* @author Evert Pot (http://www.rooftopsolutions.nl/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
*/
+
class OC_Connector_Sabre_Auth_ro_oauth extends Sabre_DAV_Auth_Backend_AbstractBasic {
private $validTokens;
@@ -52,7 +53,7 @@ die('not getting in with "'.$username.'"/"'.$password.'"!');
$auth->setRealm($realm);
$userpass = $auth->getUserPass();
if (!$userpass) {
- if(in_array($_SERVER['REQUEST_METHOD'], array('GET', 'HEAD', 'OPTIONS'))) {
+ if(in_array($_SERVER['REQUEST_METHOD'], array('OPTIONS'))) {
$userpass = array('', '');
} else {
$auth->requireLogin();