changeset 5949:97a9f939d472

mod_auth_oauth_external: Inherit default HTTP client settings (thanks nils)
author Kim Alvefur <zash@zash.se>
date Wed, 07 Aug 2024 17:59:14 +0200
parents 8ac59766ece1
children f89367e421d1
files mod_auth_oauth_external/mod_auth_oauth_external.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_oauth_external/mod_auth_oauth_external.lua	Wed Jul 31 22:06:18 2024 +0200
+++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua	Wed Aug 07 17:59:14 2024 +0200
@@ -58,7 +58,7 @@
 
 function provider.get_sasl_handler()
 	local profile = {};
-	profile.http_client = http.new({ connection_pooling = true }); -- TODO configurable
+	profile.http_client = http.default: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