Mercurial > prosody-modules
comparison mod_auth_oauth_external/mod_auth_oauth_external.lua @ 5443:4e79f344ae2f
mod_auth_oauth_external: Also do XEP-0106 escaping in SASL OAUTHBEARER
For consistency.
The mangling should be made configurable in the future.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 May 2023 19:33:37 +0200 |
parents | 7480dde4cd2e |
children | 0207fd248480 |
comparison
equal
deleted
inserted
replaced
5442:7480dde4cd2e | 5443:4e79f344ae2f |
---|---|
125 end | 125 end |
126 if type(response) ~= "table" or type(response[username_field]) ~= "string" then | 126 if type(response) ~= "table" or type(response[username_field]) ~= "string" then |
127 return false, nil, nil; | 127 return false, nil, nil; |
128 end | 128 end |
129 | 129 |
130 return response[username_field], true, response; | 130 return jid.escape(response[username_field]), true, response; |
131 end | 131 end |
132 end | 132 end |
133 return sasl.new(host, profile); | 133 return sasl.new(host, profile); |
134 end | 134 end |
135 | 135 |