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 (#20707)

(cherry picked from commit 088cbf2)
  • Loading branch information
Datkros authored and jedcunningham committed Jan 26, 2022
1 parent 0337fcb commit 3215d94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/www/fab_security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,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 3215d94

Please sign in to comment.