From 2c87a0108bfda1293afddaaee88059a4a7a82924 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 21 Mar 2023 14:01:03 +0000 Subject: util.sasl.oauthbearer: Fix gs2-header parsing --- util/sasl/oauthbearer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3