mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
SASL OAuth rename 3rd parameter to accessToken
This commit is contained in:
parent
b6df50546e
commit
35db1f4eb8
2 changed files with 4 additions and 4 deletions
|
|
@ -10,11 +10,11 @@ class OAuthBearer extends \SnappyMail\SASL
|
||||||
{
|
{
|
||||||
public function authenticate(string $username,
|
public function authenticate(string $username,
|
||||||
#[\SensitiveParameter]
|
#[\SensitiveParameter]
|
||||||
string $passphrase,
|
string $accessToken,
|
||||||
?string $authzid = null
|
?string $authzid = null
|
||||||
) : string
|
) : 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
|
public static function isSupported(string $param) : bool
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ class XOAuth2 extends \SnappyMail\SASL
|
||||||
{
|
{
|
||||||
public function authenticate(string $username,
|
public function authenticate(string $username,
|
||||||
#[\SensitiveParameter]
|
#[\SensitiveParameter]
|
||||||
string $passphrase,
|
string $accessToken,
|
||||||
?string $authzid = null
|
?string $authzid = null
|
||||||
) : string
|
) : 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
|
public static function isSupported(string $param) : bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue