Nextcloud plugin integrate OIDC from #756

This commit is contained in:
the-djmaze 2023-04-11 13:28:29 +02:00
parent 14ee6f1b5b
commit a889fc262a
5 changed files with 38 additions and 2 deletions

View file

@ -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

View file

@ -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;

View file

@ -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

View file

@ -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