summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-19 12:15:20 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-29 14:50:52 +0100
commit419507c1181e8b9685ebaa4fee8973c62967ac6e (patch)
tree18f203b0ffa160966987adff8c5db78893ab0934 /apps/files_external/appinfo
parentadbc5a0b41be84f741f8689fda98b9f89cfdf5f6 (diff)
downloadnextcloud-server-419507c1181e8b9685ebaa4fee8973c62967ac6e.tar.gz
nextcloud-server-419507c1181e8b9685ebaa4fee8973c62967ac6e.zip
Add user provided credentials mechanism
Diffstat (limited to 'apps/files_external/appinfo')
-rw-r--r--apps/files_external/appinfo/application.php1
-rw-r--r--apps/files_external/appinfo/routes.php7
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_external/appinfo/application.php b/apps/files_external/appinfo/application.php
index 1571178596b..1bf258c48b4 100644
--- a/apps/files_external/appinfo/application.php
+++ b/apps/files_external/appinfo/application.php
@@ -109,6 +109,7 @@ class Application extends App {
$container->query('OCA\Files_External\Lib\Auth\Password\Password'),
$container->query('OCA\Files_External\Lib\Auth\Password\SessionCredentials'),
$container->query('OCA\Files_External\Lib\Auth\Password\LoginCredentials'),
+ $container->query('OCA\Files_External\Lib\Auth\Password\UserProvided'),
// AuthMechanism::SCHEME_OAUTH1 mechanisms
$container->query('OCA\Files_External\Lib\Auth\OAuth1\OAuth1'),
diff --git a/apps/files_external/appinfo/routes.php b/apps/files_external/appinfo/routes.php
index c3149a300cf..b30ad0a8542 100644
--- a/apps/files_external/appinfo/routes.php
+++ b/apps/files_external/appinfo/routes.php
@@ -44,7 +44,12 @@ namespace OCA\Files_External\AppInfo;
'url' => '/ajax/public_key.php',
'verb' => 'POST',
'requirements' => array()
- )
+ ),
+ [
+ 'name' => 'UserCredentials#store',
+ 'url' => '/usercredentials/{storageId}',
+ 'verb' => 'PUT'
+ ]
)
)
);