mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-29 16:34:21 +08:00
Fix oauthbearer encoding
This commit is contained in:
parent
682af34d53
commit
95a84f8e62
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class OAuth extends \SnappyMail\SASL
|
||||||
{
|
{
|
||||||
public function authenticate(string $username, string $passphrase, ?string $authzid = null) : string
|
public function authenticate(string $username, string $passphrase, ?string $authzid = null) : string
|
||||||
{
|
{
|
||||||
return $this->encode("user={$username}\x01auth=Bearer {$passphrase}\x01\x01");
|
return $this->encode("n,a={$username},\x01auth=Bearer {$passphrase}\x01\x01");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function isSupported(string $param) : bool
|
public static function isSupported(string $param) : bool
|
||||||
|
|
Loading…
Add table
Reference in a new issue