mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
SASL OAuth rename 3rd parameter to accessToken
This commit is contained in:
parent
b6df50546e
commit
35db1f4eb8
|
@ -10,11 +10,11 @@ class OAuthBearer extends \SnappyMail\SASL
|
|||
{
|
||||
public function authenticate(string $username,
|
||||
#[\SensitiveParameter]
|
||||
string $passphrase,
|
||||
string $accessToken,
|
||||
?string $authzid = null
|
||||
) : string
|
||||
{
|
||||
return $this->encode("n,a={$username},\x01auth=Bearer {$passphrase}\x01\x01");
|
||||
return $this->encode("n,a={$username},\x01auth=Bearer {$accessToken}\x01\x01");
|
||||
}
|
||||
|
||||
public static function isSupported(string $param) : bool
|
||||
|
|
|
@ -10,11 +10,11 @@ class XOAuth2 extends \SnappyMail\SASL
|
|||
{
|
||||
public function authenticate(string $username,
|
||||
#[\SensitiveParameter]
|
||||
string $passphrase,
|
||||
string $accessToken,
|
||||
?string $authzid = null
|
||||
) : string
|
||||
{
|
||||
return $this->encode("user={$username}\x01auth=Bearer {$passphrase}\x01\x01");
|
||||
return $this->encode("user={$username}\x01auth=Bearer {$accessToken}\x01\x01");
|
||||
}
|
||||
|
||||
public static function isSupported(string $param) : bool
|
||||
|
|
Loading…
Reference in a new issue