From a835fbd1e8182090c2207a0dd71cffbf27179df7 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 19 Jun 2022 21:28:19 +0200 Subject: [PATCH] Update flask-appbuilder authlib/oauth dependency (#24516) The dependency we have for flask-appbuilder oauth authentication (for github/google authentication) should follow the limits that flask-appbuilder current version has. We added authlib there but apparently FAB currently limits authlib to <= 1.0 - we should follow fab rather than have our own dependency here. This has been pointed out in https://github.com/dpgaspar/Flask-AppBuilder/issues/1861 (cherry picked from commit 5674491dc8e8ed1685cdb4c04922cb72ad8ba9b4) GitOrigin-RevId: 2a7c1f842407f815d8abe0d2239e64f317307439 --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 713fda3c11..f2cce10ed1 100644 --- a/setup.py +++ b/setup.py @@ -309,8 +309,8 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version facebook = [ 'facebook-business>=6.0.2', ] -flask_appbuilder_authlib = [ - 'authlib', +flask_appbuilder_oauth = [ + 'flask-appbuilder[oauth]', ] github = [ 'pygithub', @@ -768,8 +768,8 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version 'cncf.kubernetes': kubernetes, # also has provider, but it extends the core with the KubernetesExecutor 'dask': dask, 'deprecated_api': deprecated_api, - 'github_enterprise': flask_appbuilder_authlib, - 'google_auth': flask_appbuilder_authlib, + 'github_enterprise': flask_appbuilder_oauth, + 'google_auth': flask_appbuilder_oauth, 'kerberos': kerberos, 'ldap': ldap, 'leveldb': leveldb,