Software /
code /
prosody-modules
Diff
mod_auth_oauth_external/mod_auth_oauth_external.lua @ 5856:75dee6127829 draft
Merge upstream
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Tue, 06 Feb 2024 18:32:01 +0700 |
parent | 5753:6592c444e85c |
line wrap: on
line diff
--- a/mod_auth_oauth_external/mod_auth_oauth_external.lua Tue Aug 29 23:51:17 2023 +0700 +++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua Tue Feb 06 18:32:01 2024 +0700 @@ -34,7 +34,7 @@ return nil, "method not implemented" end --- With proper OAuth 2, most of these should be handled at the atuhorization +-- With proper OAuth 2, most of these should be handled at the authorization -- server, no there. provider.test_password = not_implemented; provider.get_password = not_implemented; @@ -58,7 +58,7 @@ function provider.get_sasl_handler() local profile = {}; - profile.http_client = http.default; -- TODO configurable + profile.http_client = http.new({ connection_pooling = true }); -- TODO configurable local extra = { oidc_discovery_url = oidc_discovery_url }; if token_endpoint and allow_plain then local map_username = function (username, _realm) return username; end; --jid.join; -- TODO configurable