Skip to content

Commit

Permalink
Add Roles from Azure OAUTH Response in security manager as it is curr…
Browse files Browse the repository at this point in the history
…ently not able map any AD roles to airflow ones
  • Loading branch information
Datkros committed Jan 6, 2022
1 parent 64cba10 commit 265b6fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/www/fab_security/manager.py
Expand Up @@ -593,6 +593,7 @@ def get_oauth_user_info(self, provider, resp):
"last_name": me.get("family_name", ""),
"id": me["oid"],
"username": me["oid"],
"role_keys": me.get("roles", []),
}
# for OpenShift
if provider == "openshift":
Expand Down

0 comments on commit 265b6fa

Please sign in to comment.