# HG changeset patch # User Kim Alvefur # Date 1687507885 -7200 # Node ID c4ae7aa2958a108fe95e3d58df846ccee48ac25c # Parent 1ca531495c3d4b0529f86dd9a14cdb70dbce6c90 util.sasl.oauthbearer: Fix message syntax Each key-value pair has a \001 trailer, and then the whole thing has a \001 trailer as well, so it should always end with two \001. diff -r 1ca531495c3d -r c4ae7aa2958a util/sasl/oauthbearer.lua --- a/util/sasl/oauthbearer.lua Wed Jun 21 21:03:05 2023 +0200 +++ b/util/sasl/oauthbearer.lua Fri Jun 23 10:11:25 2023 +0200 @@ -3,7 +3,7 @@ if name == "OAUTHBEARER" and stream.username then return function (stream) local auth = stream.bearer_token and ("Bearer "..stream.bearer_token) or ""; - local message, data = coroutine.yield("n,a="..stream.username.."@"..stream.host..",\001auth="..auth.."\001"); + local message, data = coroutine.yield("n,a="..stream.username.."@"..stream.host..",\001auth="..auth.."\001\001"); if message == "success" then return true; elseif message == "challenge" then