From 4ac61b8c87c16077983f47cd9e8bba1a1fc0a305 Mon Sep 17 00:00:00 2001 From: Tien Nguyen Date: Thu, 30 Mar 2023 14:27:27 -0400 Subject: [PATCH] add config setter object for v3 --- .generator/templates/configuration.mustache | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.generator/templates/configuration.mustache b/.generator/templates/configuration.mustache index 13ec3b729..5b9c656e1 100644 --- a/.generator/templates/configuration.mustache +++ b/.generator/templates/configuration.mustache @@ -467,6 +467,12 @@ func WithCacheTti(i int32) ConfigSetter { } } +func WithHttpClientPtr(httpClient *http.Client) ConfigSetter { + return func(c *Configuration) { + c.HTTPClient = httpClient + } +} + func WithConnectionTimeout(i int64) ConfigSetter { return func(c *Configuration) { c.Okta.Client.ConnectionTimeout = i