This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 3512e8cbe82 Fix fab auth manager login (#49292)
3512e8cbe82 is described below
commit 3512e8cbe8279488fb8fabf98a613b0e1034f62e
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Tue Apr 15 15:26:13 2025 +0200
Fix fab auth manager login (#49292)
---
providers/fab/src/airflow/providers/fab/www/views.py | 2 +-
1 file changed, 1 insertion(+), 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 d38faab802c..cf504407c3c 100644
--- a/providers/fab/src/airflow/providers/fab/www/views.py
+++ b/providers/fab/src/airflow/providers/fab/www/views.py
@@ -68,7 +68,7 @@ class FabIndexView(IndexView):
def index(self):
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 = make_response(redirect(f"{conf.get('api', 'base_url',
fallback='/')}", code=302))
secure = conf.has_option("api", "ssl_cert")
response.set_cookie(COOKIE_NAME_JWT_TOKEN, token, secure=secure)