XOAUTH2 support (closes #1194 closes #1369)

This commit is contained in:
mdecimus
2025-05-16 17:17:13 +02:00
parent f667da0d4f
commit dcdf68b774
9 changed files with 18 additions and 59 deletions

View File

@@ -29,7 +29,7 @@ impl<T: SessionStream> Session<T> {
let mut args = request.parse_authenticate()?;
match args.mechanism {
Mechanism::Plain | Mechanism::OAuthBearer => {
Mechanism::Plain | Mechanism::OAuthBearer | Mechanism::XOauth2 => {
if !args.params.is_empty() {
let challenge = base64_decode(args.params.pop().unwrap().as_bytes())
.ok_or_else(|| {