From 40c38094052c9078a582c499f19c4645dc304a7b Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Mon, 6 Jan 2025 11:44:23 -0800 Subject: [PATCH] response["secure"] is a string but needs to be a bool --- src/authx/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authx/auth.py b/src/authx/auth.py index a189937..58d1324 100644 --- a/src/authx/auth.py +++ b/src/authx/auth.py @@ -382,7 +382,7 @@ def get_minio_client(token=None, s3_endpoint=None, bucket=None, access_key=None, access_key = response["access_key"] secret_key = response["secret_key"] url = response["url"] - secure = response["secure"] + secure = (response["secure"] == "True") else: endpoint_parse = re.match(r"(https*):\/\/(.+)?", endpoint) if endpoint_parse is not None: