mirror of
https://github.com/tchapi/davis.git
synced 2025-01-17 21:08:17 +01:00
Remove Digest auth
This commit is contained in:
parent
489205f2c1
commit
380c3d25c3
4
.env
4
.env
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user