aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2017-02-22 21:47:49 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-22 18:13:42 -0600
commit9eca1da1dd9534f68672b3164da5ab56df285e42 (patch)
tree77299279ba9a5aabac8aa8afe8d085b23a41ba5c /lib
parentd551b8e6fdacd7659216b1e698b71840b569b525 (diff)
downloadnextcloud-server-9eca1da1dd9534f68672b3164da5ab56df285e42.tar.gz
nextcloud-server-9eca1da1dd9534f68672b3164da5ab56df285e42.zip
allow configuring authType for DAV backend
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/DAV.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index 76a6155df24..73cf137181a 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -64,6 +64,8 @@ class DAV extends Common {
/** @var string */
protected $user;
/** @var string */
+ protected $authType;
+ /** @var string */
protected $host;
/** @var bool */
protected $secure;
@@ -95,6 +97,9 @@ class DAV extends Common {
$this->host = $host;
$this->user = $params['user'];
$this->password = $params['password'];
+ if (isset($params['authType'])) {
+ $this->authType = $params['authType'];
+ }
if (isset($params['secure'])) {
if (is_string($params['secure'])) {
$this->secure = ($params['secure'] === 'true');
@@ -133,11 +138,14 @@ class DAV extends Common {
}
$this->ready = true;
- $settings = array(
+ $settings = [
'baseUri' => $this->createBaseUri(),
'userName' => $this->user,
'password' => $this->password,
- );
+ ];
+ if (isset($this->authType)) {
+ $settings['authType'] = $this->authType;
+ }
$proxy = \OC::$server->getConfig()->getSystemValue('proxy', '');
if($proxy !== '') {