aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-03-21 14:01:03 +0000
committerMatthew Wild <mwild1@gmail.com>2023-03-21 14:01:03 +0000
commit2c87a0108bfda1293afddaaee88059a4a7a82924 (patch)
treee49f77f774ff1886cab68fedf2ea77cbc94242b0 /util/sasl
parent6d526798bfee449be69879b881268245327dde70 (diff)
downloadprosody-2c87a0108bfda1293afddaaee88059a4a7a82924.tar.gz
prosody-2c87a0108bfda1293afddaaee88059a4a7a82924.zip
util.sasl.oauthbearer: Fix gs2-header parsing
Diffstat (limited to 'util/sasl')
-rw-r--r--util/sasl/oauthbearer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/oauthbearer.lua b/util/sasl/oauthbearer.lua
index 7cba5f35..26940ce6 100644
--- a/util/sasl/oauthbearer.lua
+++ b/util/sasl/oauthbearer.lua
@@ -11,7 +11,7 @@ local function oauthbearer(self, message)
return "failure", "not-authorized";
end
- local gs2_header, kvpairs = message:match("^(n,[^,]*,),(.+)$");
+ local gs2_header, kvpairs = message:match("^(n,[^,]*,)(.+)$");
if not gs2_header then
return "failure", "malformed-request";
end