Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

support airflow 2 #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions fab_oidc/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ class OIDCSecurityManager(OIDCSecurityManagerMixin, SecurityManager):


try:
from airflow.www_rbac.security import AirflowSecurityManager
from airflow.www.security import AirflowSecurityManager

class AirflowOIDCSecurityManager(OIDCSecurityManagerMixin,
AirflowSecurityManager):
pass
except ImportError:
log.debug('Airflow not installed')
log.debug('Airflow 2 not installed')

try:
from airflow.www_rbac.security import AirflowSecurityManager

class AirflowOIDCSecurityManager(OIDCSecurityManagerMixin,
AirflowSecurityManager):
pass
except ImportError:
log.debug('Airflow 1 not installed')

try:
from superset.security import SupersetSecurityManager
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def desc():

setup(
name='fab_oidc',
version='0.0.9',
version='0.1.0',
url='https://github.com/ministryofjustice/fab-oidc/',
license='MIT',
author='ministryofjustice',
Expand Down