diff options
author | Kim Alvefur <zash@zash.se> | 2023-03-16 13:45:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-03-16 13:45:49 +0100 |
commit | 2331fc8b65377e722294b02bcf10d551336e6f6c (patch) | |
tree | 0a98e6121314373abb1e4e1bbcaeb1305dc891e7 /util/sasl/anonymous.lua | |
parent | 8aecd1981204a28d2ed2754c3d302995722eebcb (diff) | |
download | prosody-2331fc8b65377e722294b02bcf10d551336e6f6c.tar.gz prosody-2331fc8b65377e722294b02bcf10d551336e6f6c.zip |
util.sasl.oauthbearer: Adjust parsing of GS2 to allow lack of authzid
Partly copied from util.sasl.scram and then reduced a bit.
Diffstat (limited to 'util/sasl/anonymous.lua')
-rw-r--r-- | util/sasl/anonymous.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/anonymous.lua b/util/sasl/anonymous.lua index de98a5e2..089f038f 100644 --- a/util/sasl/anonymous.lua +++ b/util/sasl/anonymous.lua @@ -33,8 +33,8 @@ local function anonymous(self, message) -- luacheck: ignore 212/message local username; repeat username = generate_random_id():lower(); - until self.profile.anonymous(self, username, self.realm); - self.username = username; + self.username = username; + until self.profile.anonymous(self, username, self.realm, message); return "success" end |