mod_auth_oauth_external: Also do XEP-0106 escaping in SASL OAUTHBEARER
For consistency.
The mangling should be made configurable in the future.
--- 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);