Remove Digest auth

This commit is contained in:
tchapi 2021-09-13 16:13:01 +02:00
parent 489205f2c1
commit 380c3d25c3
4 changed files with 4 additions and 8 deletions

4
.env
View File

@ -43,8 +43,8 @@ ADMIN_PASSWORD=test
AUTH_REALM=SabreDAV
# Auth Method for the frontend
# "Basic", "Digest" or "IMAP"
AUTH_METHOD=Digest
# "Basic" or "IMAP"
AUTH_METHOD=Basic
# In case of IMAP Auth, you must specify the url of the mailbox in the following format {host[:port][/flag1/flag2...]}.
# See https://www.php.net/manual/en/function.imap-open.php for more details

View File

@ -59,7 +59,7 @@ c. The auth Realm and method for HTTP auth
```
AUTH_REALM=SabreDAV
AUTH_METHOD=Digest # can be "Basic", "Digest" or "IMAP"
AUTH_METHOD=Basic # can be "Basic" or "IMAP"
```
> In case you use the `IMAP` auth type, you must specify the auth url (the "mailbox" url) in `IMAP_AUTH_URL`. See https://www.php.net/manual/en/function.imap-open.php for more details.

View File

@ -11,7 +11,7 @@ ADMIN_LOGIN=admin
ADMIN_PASSWORD=admin
AUTH_REALM=SabreDAV
AUTH_METHOD=Digest
AUTH_METHOD=Basic
CALDAV_ENABLED=true
CARDDAV_ENABLED=true

View File

@ -16,7 +16,6 @@ use Twig\Environment as TwigEnvironment;
class DAVController extends AbstractController
{
const AUTH_DIGEST = 'Digest';
const AUTH_BASIC = 'Basic';
const AUTH_IMAP = 'IMAP';
@ -161,9 +160,6 @@ class DAVController extends AbstractController
* The backends.
*/
switch ($this->authMethod) {
case self::AUTH_DIGEST:
$authBackend = new \Sabre\DAV\Auth\Backend\PDO($pdo);
break;
case self::AUTH_IMAP:
$authBackend = new \Sabre\DAV\Auth\Backend\IMAP($this->IMAPAuthUrl);
break;