mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 17:37:02 +03:00
Nextcloud plugin integrate OIDC from #756
This commit is contained in:
parent
14ee6f1b5b
commit
a889fc262a
5 changed files with 38 additions and 2 deletions
|
|
@ -94,6 +94,11 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
}
|
||||
|
||||
public function supportsAuthType(string $sasl_type) : bool
|
||||
{
|
||||
return $this->hasCapability("AUTH={$sasl_type}");
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \MailSo\RuntimeException
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ abstract class NetClient
|
|||
}
|
||||
}
|
||||
|
||||
abstract public function supportsAuthType(string $sasl_type) : bool;
|
||||
// abstract public function Login(ConnectSettings $oSettings) : self;
|
||||
abstract public function Logout() : void;
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,11 @@ class SieveClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
}
|
||||
|
||||
public function supportsAuthType(string $sasl_type) : bool
|
||||
{
|
||||
return \in_array(\strtoupper($sasl_type), $this->aAuth);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \MailSo\RuntimeException
|
||||
|
|
|
|||
|
|
@ -102,6 +102,11 @@ class SmtpClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
}
|
||||
|
||||
public function supportsAuthType(string $sasl_type) : bool
|
||||
{
|
||||
return \in_array(\strtoupper($sasl_type), $this->aAuthTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \MailSo\RuntimeException
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue