Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorF. Kooman <fkooman@tuxed.net>2012-10-27 20:44:27 +0400
committerF. Kooman <fkooman@tuxed.net>2012-10-27 20:44:27 +0400
commitfd96de997563718ae495a77aba508f292ad6e9ef (patch)
tree46171852d84e4b800cbf79257a6ca7724b30c4fa /user_oauth
parentb94273618fdf3e99d3949c8d3b1ef25fcd99996b (diff)
more cleanup, ready to debug
Diffstat (limited to 'user_oauth')
-rw-r--r--user_oauth/appinfo/info.xml3
-rw-r--r--user_oauth/index.php26
-rw-r--r--user_oauth/webdav.php2
3 files changed, 5 insertions, 26 deletions
diff --git a/user_oauth/appinfo/info.xml b/user_oauth/appinfo/info.xml
index 1cd912f8d..54d676daa 100644
--- a/user_oauth/appinfo/info.xml
+++ b/user_oauth/appinfo/info.xml
@@ -8,4 +8,7 @@
<author>Frank Karlitschek</author>
<require>4.9</require>
<shipped>true</shipped>
+ <remote>
+ <odav>webdav.php</odav>
+ </remote>
</info>
diff --git a/user_oauth/index.php b/user_oauth/index.php
deleted file mode 100644
index 07faa09e0..000000000
--- a/user_oauth/index.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/**
-* ownCloud - OAuth
-*
-* @author Frank Karlitschek
-* @copyright 2011 Frank Karlitschek karlitschek@kde.org
-*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either
-* version 3 of the License, or any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*
-* You should have received a copy of the GNU Affero General Public
-* License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*
-*/
-
-// Check if we are a user
-OCP\User::checkLoggedIn();
-
diff --git a/user_oauth/webdav.php b/user_oauth/webdav.php
index ed23faf1c..e8850d474 100644
--- a/user_oauth/webdav.php
+++ b/user_oauth/webdav.php
@@ -27,6 +27,8 @@
$RUNTIME_APPTYPES=array('filesystem','authentication');
require_once '../lib/base.php';
+require_once 'AbstractBearer.php';
+
$tokenInfoEndpoint = \OC_Config::getValue( "tokenInfoEndpoint", "http://localhost/oauth/php-oauth/tokeninfo.php" );
// Backends