diff --git a/apps/files_external/appinfo/application.php b/apps/files_external/appinfo/application.php
index df7ba357489..c755b6a29b0 100644
--- a/apps/files_external/appinfo/application.php
+++ b/apps/files_external/appinfo/application.php
@@ -108,7 +108,6 @@ class Application extends App {
// AuthMechanism::SCHEME_PASSWORD mechanisms
$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\GlobalAuth'),
// 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 d5b927c0227..c3149a300cf 100644
--- a/apps/files_external/appinfo/routes.php
+++ b/apps/files_external/appinfo/routes.php
@@ -44,12 +44,7 @@ namespace OCA\Files_External\AppInfo;
'url' => '/ajax/public_key.php',
'verb' => 'POST',
'requirements' => array()
- ),
- [
- 'name' => 'Ajax#saveGlobalCredentials',
- 'url' => '/globalcredentials',
- 'verb' => 'POST'
- ]
+ )
)
)
);
diff --git a/apps/files_external/controller/ajaxcontroller.php b/apps/files_external/controller/ajaxcontroller.php
index 86c1b657c91..67c32422b1c 100644
--- a/apps/files_external/controller/ajaxcontroller.php
+++ b/apps/files_external/controller/ajaxcontroller.php
@@ -23,7 +23,6 @@
namespace OCA\Files_External\Controller;
-use OCA\Files_External\Lib\Auth\Password\GlobalAuth;
use OCP\AppFramework\Controller;
use OCP\IRequest;
use OCP\AppFramework\Http\JSONResponse;
@@ -32,13 +31,10 @@ use OCA\Files_External\Lib\Auth\PublicKey\RSA;
class AjaxController extends Controller {
/** @var RSA */
private $rsaMechanism;
- /** @var GlobalAuth */
- private $globalAuth;
- public function __construct($appName, IRequest $request, RSA $rsaMechanism, GlobalAuth $globalAuth) {
+ public function __construct($appName, IRequest $request, RSA $rsaMechanism) {
parent::__construct($appName, $request);
$this->rsaMechanism = $rsaMechanism;
- $this->globalAuth = $globalAuth;
}
private function generateSshKeys() {
@@ -64,9 +60,4 @@ class AjaxController extends Controller {
'status' => 'success'
));
}
-
- public function saveGlobalCredentials($uid, $user, $password) {
- $this->globalAuth->saveAuth($uid, $user, $password);
- return true;
- }
}
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 0837555f534..26df203091e 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1338,33 +1338,6 @@ $(document).ready(function() {
}
});
- $('#global_credentials').on('submit', function() {
- var $form = $(this);
- var uid = $form.find('[name=uid]').val();
- var user = $form.find('[name=username]').val();
- var password = $form.find('[name=password]').val();
- var $submit = $form.find('[type=submit]');
- $submit.val(t('files_external', 'Saving...'));
- $.ajax({
- type: 'POST',
- contentType: 'application/json',
- data: JSON.stringify({
- uid: uid,
- user: user,
- password: password
- }),
- url: OC.generateUrl('apps/files_external/globalcredentials'),
- dataType: 'json',
- success: function() {
- $submit.val(t('files_external', 'Saved'));
- setTimeout(function(){
- $submit.val(t('files_external', 'Save'));
- }, 2500);
- }
- });
- return false;
- });
-
// global instance
OCA.External.Settings.mountConfig = mountConfigListView;
diff --git a/apps/files_external/lib/auth/password/globalauth.php b/apps/files_external/lib/auth/password/globalauth.php
deleted file mode 100644
index c6faee06109..00000000000
--- a/apps/files_external/lib/auth/password/globalauth.php
+++ /dev/null
@@ -1,88 +0,0 @@
-
- *
- * @copyright Copyright (c) 2015, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program 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, version 3,
- * along with this program. If not, see