From 7a0adeec67ba8d0a746afb9167e9ae097d532c3c Mon Sep 17 00:00:00 2001 From: vincbeck Date: Thu, 24 Apr 2025 16:28:13 -0400 Subject: [PATCH] Update `secure` in AWS auth manager --- .../airflow/providers/amazon/aws/auth_manager/routes/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/amazon/src/airflow/providers/amazon/aws/auth_manager/routes/login.py b/providers/amazon/src/airflow/providers/amazon/aws/auth_manager/routes/login.py index 6c94e3e390630..5dab5de6b40f1 100644 --- a/providers/amazon/src/airflow/providers/amazon/aws/auth_manager/routes/login.py +++ b/providers/amazon/src/airflow/providers/amazon/aws/auth_manager/routes/login.py @@ -100,7 +100,7 @@ def login_callback(request: Request): if relay_state == "login-redirect": response = RedirectResponse(url=url, status_code=303) - secure = conf.has_option("api", "ssl_cert") + secure = bool(conf.get("api", "ssl_cert", fallback="")) response.set_cookie(COOKIE_NAME_JWT_TOKEN, token, secure=secure) return response if relay_state == "login-token":