apache-airflow-providers-fab 1.5.0rc3__py3-none-any.whl → 1.5.1__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/providers/fab/__init__.py +1 -1
- airflow/providers/fab/auth_manager/fab_auth_manager.py +13 -2
- airflow/providers/fab/get_provider_info.py +2 -1
- {apache_airflow_providers_fab-1.5.0rc3.dist-info → apache_airflow_providers_fab-1.5.1.dist-info}/METADATA +11 -11
- {apache_airflow_providers_fab-1.5.0rc3.dist-info → apache_airflow_providers_fab-1.5.1.dist-info}/RECORD +7 -7
- {apache_airflow_providers_fab-1.5.0rc3.dist-info → apache_airflow_providers_fab-1.5.1.dist-info}/WHEEL +1 -1
- {apache_airflow_providers_fab-1.5.0rc3.dist-info → apache_airflow_providers_fab-1.5.1.dist-info}/entry_points.txt +0 -0
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
29
29
|
|
30
30
|
__all__ = ["__version__"]
|
31
31
|
|
32
|
-
__version__ = "1.5.
|
32
|
+
__version__ = "1.5.1"
|
33
33
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
35
35
|
"2.9.0"
|
@@ -25,7 +25,7 @@ from typing import TYPE_CHECKING, Container
|
|
25
25
|
|
26
26
|
import packaging.version
|
27
27
|
from connexion import FlaskApi
|
28
|
-
from flask import Blueprint, url_for
|
28
|
+
from flask import Blueprint, g, url_for
|
29
29
|
from packaging.version import Version
|
30
30
|
from sqlalchemy import select
|
31
31
|
from sqlalchemy.orm import Session, joinedload
|
@@ -183,9 +183,20 @@ class FabAuthManager(BaseAuthManager):
|
|
183
183
|
return f"{first_name} {last_name}".strip()
|
184
184
|
|
185
185
|
def get_user(self) -> User:
|
186
|
-
"""
|
186
|
+
"""
|
187
|
+
Return the user associated to the user in session.
|
188
|
+
|
189
|
+
Attempt to find the current user in g.user, as defined by the kerberos authentication backend.
|
190
|
+
If no such user is found, return the `current_user` local proxy object, linked to the user session.
|
191
|
+
|
192
|
+
"""
|
187
193
|
from flask_login import current_user
|
188
194
|
|
195
|
+
# If a user has gone through the Kerberos dance, the kerberos authentication manager
|
196
|
+
# has linked it with a User model, stored in g.user, and not the session.
|
197
|
+
if current_user.is_anonymous and getattr(g, "user", None) is not None and not g.user.is_anonymous:
|
198
|
+
return g.user
|
199
|
+
|
189
200
|
return current_user
|
190
201
|
|
191
202
|
def init(self) -> None:
|
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
28
28
|
"name": "Fab",
|
29
29
|
"description": "`Flask App Builder <https://flask-appbuilder.readthedocs.io/>`__\n",
|
30
30
|
"state": "ready",
|
31
|
-
"source-date-epoch":
|
31
|
+
"source-date-epoch": 1731570160,
|
32
32
|
"versions": [
|
33
|
+
"1.5.1",
|
33
34
|
"1.5.0",
|
34
35
|
"1.4.1",
|
35
36
|
"1.4.0",
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: apache-airflow-providers-fab
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.1
|
4
4
|
Summary: Provider package apache-airflow-providers-fab for Apache Airflow
|
5
5
|
Keywords: airflow-provider,fab,airflow,integration
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
@@ -20,23 +20,23 @@ Classifier: Programming Language :: Python :: 3.10
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
23
|
-
Requires-Dist: apache-airflow-providers-common-compat>=1.2.
|
24
|
-
Requires-Dist: apache-airflow>=2.9.
|
23
|
+
Requires-Dist: apache-airflow-providers-common-compat>=1.2.1
|
24
|
+
Requires-Dist: apache-airflow>=2.9.0
|
25
25
|
Requires-Dist: flask-appbuilder==4.5.2
|
26
26
|
Requires-Dist: flask-login>=0.6.2
|
27
27
|
Requires-Dist: flask>=2.2,<2.3
|
28
28
|
Requires-Dist: google-re2>=1.0
|
29
29
|
Requires-Dist: jmespath>=0.7.0
|
30
|
-
Requires-Dist: apache-airflow-providers-common-compat ; extra == "common
|
30
|
+
Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
|
31
31
|
Requires-Dist: kerberos>=1.3.0 ; extra == "kerberos"
|
32
32
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
33
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.
|
34
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.
|
33
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.1/changelog.html
|
34
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.1
|
35
35
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
36
36
|
Project-URL: Source Code, https://github.com/apache/airflow
|
37
37
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
38
38
|
Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
39
|
-
Provides-Extra: common
|
39
|
+
Provides-Extra: common-compat
|
40
40
|
Provides-Extra: kerberos
|
41
41
|
|
42
42
|
|
@@ -83,7 +83,7 @@ Provides-Extra: kerberos
|
|
83
83
|
|
84
84
|
Package ``apache-airflow-providers-fab``
|
85
85
|
|
86
|
-
Release: ``1.5.
|
86
|
+
Release: ``1.5.1``
|
87
87
|
|
88
88
|
|
89
89
|
`Flask App Builder <https://flask-appbuilder.readthedocs.io/>`__
|
@@ -96,7 +96,7 @@ This is a provider package for ``fab`` provider. All classes for this provider p
|
|
96
96
|
are in ``airflow.providers.fab`` python package.
|
97
97
|
|
98
98
|
You can find package information and changelog for the provider
|
99
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.
|
99
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.1/>`_.
|
100
100
|
|
101
101
|
Installation
|
102
102
|
------------
|
@@ -142,4 +142,4 @@ Dependent package
|
|
142
142
|
================================================================================================================== =================
|
143
143
|
|
144
144
|
The changelog for the provider package can be found in the
|
145
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.
|
145
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-fab/1.5.1/changelog.html>`_.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
airflow/providers/fab/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
|
2
|
-
airflow/providers/fab/__init__.py,sha256=
|
2
|
+
airflow/providers/fab/__init__.py,sha256=VOM-leCB1WztvLNEzbbOMeFtau7c1BfzzS1ZwHU9ir8,1490
|
3
3
|
airflow/providers/fab/alembic.ini,sha256=_1SvObfjMAkuD7DN5VR2S6Rd7_F81pORZT-w7GJldIA,4461
|
4
|
-
airflow/providers/fab/get_provider_info.py,sha256=
|
4
|
+
airflow/providers/fab/get_provider_info.py,sha256=mZIABlMPe9GVHXYRu-2_OQxy7f2E8tJlAT8-Zw-E7VM,3475
|
5
5
|
airflow/providers/fab/auth_manager/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
6
|
-
airflow/providers/fab/auth_manager/fab_auth_manager.py,sha256=
|
6
|
+
airflow/providers/fab/auth_manager/fab_auth_manager.py,sha256=nPjgvvCnXfV0W5qzUXy6XqdCaJYsQpdoPzaYqnQuwWw,23164
|
7
7
|
airflow/providers/fab/auth_manager/api/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
8
8
|
airflow/providers/fab/auth_manager/api/auth/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
9
9
|
airflow/providers/fab/auth_manager/api/auth/backend/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
@@ -45,7 +45,7 @@ airflow/providers/fab/migrations/env.py,sha256=wbgFowVIf-wY1L-DqD2f8wiuTeXNDKeAU
|
|
45
45
|
airflow/providers/fab/migrations/script.py.mako,sha256=_krfPtzv1Unme2b9MCHPgXo0g73HcN2_zDgz3co2N4M,1353
|
46
46
|
airflow/providers/fab/migrations/versions/0001_1_4_0_placeholder_migration.py,sha256=wLZiBiWjfSofXZ4jXMjpEKkIc3jI0a6hpJ73xEYAzss,1370
|
47
47
|
airflow/providers/fab/migrations/versions/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
48
|
-
apache_airflow_providers_fab-1.5.
|
49
|
-
apache_airflow_providers_fab-1.5.
|
50
|
-
apache_airflow_providers_fab-1.5.
|
51
|
-
apache_airflow_providers_fab-1.5.
|
48
|
+
apache_airflow_providers_fab-1.5.1.dist-info/entry_points.txt,sha256=m05kASp7vFi0ZmQ--CFp7GeJpPL7UT2RQF8EEP5XRX8,99
|
49
|
+
apache_airflow_providers_fab-1.5.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
50
|
+
apache_airflow_providers_fab-1.5.1.dist-info/METADATA,sha256=Qtwpc2MjtuJ7Hd0Jd2wsoDr3dQcQiSbqfyxM_IxAp4c,6558
|
51
|
+
apache_airflow_providers_fab-1.5.1.dist-info/RECORD,,
|
File without changes
|