airflow-file-auth-manager 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,10 +87,11 @@ def create_auth_app(auth_manager: FileAuthManager) -> FastAPI:
87
87
  body = await request.json()
88
88
  username = body.get("username")
89
89
  password = body.get("password")
90
- except Exception:
90
+ except Exception as e:
91
+ logger.error("Failed to parse JSON body: %s", e)
91
92
  return JSONResponse(
92
93
  status_code=400,
93
- content={"error": "Invalid JSON body"},
94
+ content={"error": f"Invalid JSON body: {e}"},
94
95
  )
95
96
  elif is_form_submission:
96
97
  form_data = await request.form()
@@ -144,7 +145,7 @@ def create_auth_app(auth_manager: FileAuthManager) -> FastAPI:
144
145
 
145
146
  redirect_response = RedirectResponse(url=str(next_url), status_code=303)
146
147
  redirect_response.set_cookie(
147
- key="airflow_jwt",
148
+ key="_token",
148
149
  value=token,
149
150
  max_age=jwt_expiration,
150
151
  httponly=True, # Protect from XSS attacks
@@ -170,7 +171,7 @@ def create_auth_app(auth_manager: FileAuthManager) -> FastAPI:
170
171
  request.client.host if request.client else "unknown")
171
172
 
172
173
  redirect_response = RedirectResponse(url="/auth/login", status_code=303)
173
- redirect_response.delete_cookie(key="airflow_jwt")
174
+ redirect_response.delete_cookie(key="_token")
174
175
  return redirect_response
175
176
 
176
177
  return app
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-file-auth-manager
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: YAML file-based lightweight Auth Manager for Apache Airflow 3.x
5
5
  Project-URL: Homepage, https://github.com/choo121600/airflow-file-auth-manager
6
6
  Project-URL: Repository, https://github.com/choo121600/airflow-file-auth-manager
@@ -1,6 +1,6 @@
1
1
  airflow_file_auth_manager/__init__.py,sha256=M1nQascdVasmnx9yih96Htl-Z626KIVAtALBJ9KyCd0,993
2
2
  airflow_file_auth_manager/cli.py,sha256=seJ5Vu1R763DFVfd3tsBIk6RaGIXlarB1gSu3WVv03c,8935
3
- airflow_file_auth_manager/endpoints.py,sha256=bX-9kHjyZu3H11QhYVwb-dQhuZTTFuL1kChm6vnFTx8,6300
3
+ airflow_file_auth_manager/endpoints.py,sha256=6h4xcY-xakpwbcvt61hUT-WsEu8bfzFWz-3tHygNj1U,6366
4
4
  airflow_file_auth_manager/file_auth_manager.py,sha256=hRTudfXHL6c0OMptArFmSP1vWbNsBpfHRbTtsLfO1e4,13081
5
5
  airflow_file_auth_manager/password.py,sha256=C-a6vjOxnht9X4OE_xrlvWH1DaEMJwK9OV20fE0OQJ8,2689
6
6
  airflow_file_auth_manager/policy.py,sha256=luj1EhVAKLZxubr7h4Au171-R1Q_HmGb78QEWqWQync,5159
@@ -8,8 +8,8 @@ airflow_file_auth_manager/user.py,sha256=lxskYF8rQGEzgxKu6NzDtXLPtNRY2AspBKu89Ri
8
8
  airflow_file_auth_manager/user_store.py,sha256=VV1D0vWlm5Z_l-bcXLEQpueY5Gfx7xUdUqBpFDLlLIA,11717
9
9
  airflow_file_auth_manager/static/styles.css,sha256=-gxvqlQCHpZtif-93OpqgcyYTe__9Sr92Np-9N97S04,1675
10
10
  airflow_file_auth_manager/templates/login.html,sha256=OMHv2c6OsnMsKKXYFaQwnHzVtAjUQe9HSZgoaI2DGY8,8387
11
- airflow_file_auth_manager-0.1.4.dist-info/METADATA,sha256=wXnEUxAXQZHqFDlRBcTyDEB-LGBuEeI0m1qQLeLn0oQ,11041
12
- airflow_file_auth_manager-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
- airflow_file_auth_manager-0.1.4.dist-info/entry_points.txt,sha256=bQgxFNgbmAewrv9RAZ_tYUNZy5IxS_Zhlj6vgG9lbqY,168
14
- airflow_file_auth_manager-0.1.4.dist-info/licenses/LICENSE,sha256=fw8CKBXZ_-V6K5pxfUmJP3e_7QUvFq8XncuZ27tvarg,10177
15
- airflow_file_auth_manager-0.1.4.dist-info/RECORD,,
11
+ airflow_file_auth_manager-0.1.5.dist-info/METADATA,sha256=C0skr4f4AhhohI__CNckZVTCwGGzD0KT_X60Y6_Q7GU,11041
12
+ airflow_file_auth_manager-0.1.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
+ airflow_file_auth_manager-0.1.5.dist-info/entry_points.txt,sha256=bQgxFNgbmAewrv9RAZ_tYUNZy5IxS_Zhlj6vgG9lbqY,168
14
+ airflow_file_auth_manager-0.1.5.dist-info/licenses/LICENSE,sha256=fw8CKBXZ_-V6K5pxfUmJP3e_7QUvFq8XncuZ27tvarg,10177
15
+ airflow_file_auth_manager-0.1.5.dist-info/RECORD,,