You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by pi...@apache.org on 2025/03/17 17:54:16 UTC
(airflow) branch main updated: AIP-38 Fix safari login loop in dev mode (#47859)
This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new bf25c37f28d AIP-38 Fix safari login loop in dev mode (#47859)
bf25c37f28d is described below
commit bf25c37f28d4330567b018bec3bfea8f90cc6eaa
Author: Pierre Jeambrun <pi...@gmail.com>
AuthorDate: Mon Mar 17 18:54:09 2025 +0100
AIP-38 Fix safari login loop in dev mode (#47859)
---
providers/fab/src/airflow/providers/fab/www/views.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/providers/fab/src/airflow/providers/fab/www/views.py b/providers/fab/src/airflow/providers/fab/www/views.py
index ccc9488ed52..7a828a7fdfd 100644
--- a/providers/fab/src/airflow/providers/fab/www/views.py
+++ b/providers/fab/src/airflow/providers/fab/www/views.py
@@ -69,7 +69,9 @@ class FabIndexView(IndexView):
if g.user is not None and g.user.is_authenticated:
token = get_auth_manager().generate_jwt(g.user)
response = make_response(redirect(f"{conf.get('api', 'base_url')}", code=302))
- response.set_cookie(COOKIE_NAME_JWT_TOKEN, token, secure=True)
+
+ secure = bool(conf.get("api", "ssl_cert"))
+ response.set_cookie(COOKIE_NAME_JWT_TOKEN, token, secure=secure)
return response
else: