diff mod_auth_oauth_external/mod_auth_oauth_external.lua @ 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 6592c444e85c
children
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