From d113e57bebb40336783c0c1819ecdd9fd66b30cd Mon Sep 17 00:00:00 2001 From: Patrik Date: Thu, 23 May 2024 13:03:37 +0200 Subject: [PATCH] fix: namespace --- connector/auth/jwt_token_validation.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/connector/auth/jwt_token_validation.go b/connector/auth/jwt_token_validation.go index eccacd1..9ccf09d 100644 --- a/connector/auth/jwt_token_validation.go +++ b/connector/auth/jwt_token_validation.go @@ -21,6 +21,7 @@ package auth import ( "context" + "crypto/tls" "encoding/json" "errors" "fmt" @@ -48,9 +49,13 @@ var httpClient *http.Client // Init function for the package func init() { + tr := &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + } // Create a HTTP client with a timeout httpClient = &http.Client{ - Timeout: fetchTimeout * time.Second, + Transport: tr, + Timeout: fetchTimeout * time.Second, } }