# HG changeset patch # User Matthew Wild # Date 1679407263 0 # Node ID 4cc0785f960e41dfcb434784bb108492740979e6 # Parent 2cb5994e3f947706ed1251c4e11a357affbd3183 util.sasl.oauthbearer: Fix gs2-header parsing diff -r 2cb5994e3f94 -r 4cc0785f960e util/sasl/oauthbearer.lua --- a/util/sasl/oauthbearer.lua Tue Mar 21 01:46:47 2023 +0300 +++ b/util/sasl/oauthbearer.lua Tue Mar 21 14:01:03 2023 +0000 @@ -11,7 +11,7 @@ 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