# HG changeset patch # User Kim Alvefur # Date 1683740017 -7200 # Node ID 4e79f344ae2fd1abcb42a89d9d238755de2da0d6 # Parent 7480dde4cd2ebdf43ea4be9abc7b61a7480cb712 mod_auth_oauth_external: Also do XEP-0106 escaping in SASL OAUTHBEARER For consistency. The mangling should be made configurable in the future. diff -r 7480dde4cd2e -r 4e79f344ae2f mod_auth_oauth_external/mod_auth_oauth_external.lua --- a/mod_auth_oauth_external/mod_auth_oauth_external.lua Wed May 10 19:11:25 2023 +0200 +++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua Wed May 10 19:33:37 2023 +0200 @@ -127,7 +127,7 @@ return false, nil, nil; end - return response[username_field], true, response; + return jid.escape(response[username_field]), true, response; end end return sasl.new(host, profile);