airflow-file-auth-manager 0.1.2__py3-none-any.whl → 0.1.3__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.
- airflow_file_auth_manager/endpoints.py +3 -3
- airflow_file_auth_manager/file_auth_manager.py +2 -2
- airflow_file_auth_manager/templates/login.html +1 -1
- {airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/METADATA +1 -1
- {airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/RECORD +8 -8
- {airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/WHEEL +0 -0
- {airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/entry_points.txt +0 -0
- {airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -97,7 +97,7 @@ def create_auth_app(auth_manager: FileAuthManager) -> FastAPI:
|
|
|
97
97
|
logger.warning("AUDIT: Login attempt with missing credentials")
|
|
98
98
|
if is_form_submission:
|
|
99
99
|
return RedirectResponse(
|
|
100
|
-
url="/auth/
|
|
100
|
+
url="/auth/login?error=Username+and+password+required",
|
|
101
101
|
status_code=303,
|
|
102
102
|
)
|
|
103
103
|
return JSONResponse(
|
|
@@ -112,7 +112,7 @@ def create_auth_app(auth_manager: FileAuthManager) -> FastAPI:
|
|
|
112
112
|
username, request.client.host if request.client else "unknown")
|
|
113
113
|
if is_form_submission:
|
|
114
114
|
return RedirectResponse(
|
|
115
|
-
url="/auth/
|
|
115
|
+
url="/auth/login?error=Invalid+username+or+password",
|
|
116
116
|
status_code=303,
|
|
117
117
|
)
|
|
118
118
|
return JSONResponse(
|
|
@@ -167,7 +167,7 @@ def create_auth_app(auth_manager: FileAuthManager) -> FastAPI:
|
|
|
167
167
|
logger.info("AUDIT: User logged out (IP: %s)",
|
|
168
168
|
request.client.host if request.client else "unknown")
|
|
169
169
|
|
|
170
|
-
redirect_response = RedirectResponse(url="/auth/
|
|
170
|
+
redirect_response = RedirectResponse(url="/auth/login", status_code=303)
|
|
171
171
|
redirect_response.delete_cookie(key="airflow_jwt")
|
|
172
172
|
return redirect_response
|
|
173
173
|
|
|
@@ -89,14 +89,14 @@ class FileAuthManager(BaseAuthManager[FileUser]):
|
|
|
89
89
|
|
|
90
90
|
def get_url_login(self, *, next_url: str | None = None) -> str:
|
|
91
91
|
"""Get the login page URL."""
|
|
92
|
-
url = "/auth/
|
|
92
|
+
url = "/auth/login"
|
|
93
93
|
if next_url:
|
|
94
94
|
url = f"{url}?{urlencode({'next': next_url})}"
|
|
95
95
|
return url
|
|
96
96
|
|
|
97
97
|
def get_url_logout(self) -> str:
|
|
98
98
|
"""Get the logout URL."""
|
|
99
|
-
return "/auth/
|
|
99
|
+
return "/auth/logout"
|
|
100
100
|
|
|
101
101
|
# =========================================================================
|
|
102
102
|
# Serialization Methods (for JWT)
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
|
|
196
196
|
<p class="description">Enter your username and password below:</p>
|
|
197
197
|
|
|
198
|
-
<form action="/auth/
|
|
198
|
+
<form action="/auth/token" method="POST">
|
|
199
199
|
<input type="hidden" name="next" value="{{ next_url }}">
|
|
200
200
|
|
|
201
201
|
<div class="form-group">
|
{airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airflow-file-auth-manager
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
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
|
{airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/RECORD
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
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=
|
|
4
|
-
airflow_file_auth_manager/file_auth_manager.py,sha256=
|
|
3
|
+
airflow_file_auth_manager/endpoints.py,sha256=3kWPYAAOdSH3eMKzu92Q0PkG4GtVDugaeTRbu_TnRwc,6207
|
|
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
|
|
7
7
|
airflow_file_auth_manager/user.py,sha256=lxskYF8rQGEzgxKu6NzDtXLPtNRY2AspBKu89RiIEZg,2278
|
|
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
|
-
airflow_file_auth_manager/templates/login.html,sha256=
|
|
11
|
-
airflow_file_auth_manager-0.1.
|
|
12
|
-
airflow_file_auth_manager-0.1.
|
|
13
|
-
airflow_file_auth_manager-0.1.
|
|
14
|
-
airflow_file_auth_manager-0.1.
|
|
15
|
-
airflow_file_auth_manager-0.1.
|
|
10
|
+
airflow_file_auth_manager/templates/login.html,sha256=OMHv2c6OsnMsKKXYFaQwnHzVtAjUQe9HSZgoaI2DGY8,8387
|
|
11
|
+
airflow_file_auth_manager-0.1.3.dist-info/METADATA,sha256=di8NdKUQ8WH73T2T0h2doIAvF4LHXsvL9zYrBb1h6Fo,11041
|
|
12
|
+
airflow_file_auth_manager-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
13
|
+
airflow_file_auth_manager-0.1.3.dist-info/entry_points.txt,sha256=bQgxFNgbmAewrv9RAZ_tYUNZy5IxS_Zhlj6vgG9lbqY,168
|
|
14
|
+
airflow_file_auth_manager-0.1.3.dist-info/licenses/LICENSE,sha256=fw8CKBXZ_-V6K5pxfUmJP3e_7QUvFq8XncuZ27tvarg,10177
|
|
15
|
+
airflow_file_auth_manager-0.1.3.dist-info/RECORD,,
|
{airflow_file_auth_manager-0.1.2.dist-info → airflow_file_auth_manager-0.1.3.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|