You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2022/01/27 00:00:57 UTC

[airflow] 02/09: Add Roles from Azure OAUTH Response in security manager as it is currently not able map any AD roles to airflow ones (#20707)

This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 3215d945dcfa1ba077e11fe3dd79861e0f39f631
Author: VĂ­ctor Rincones <da...@gmail.com>
AuthorDate: Thu Jan 6 22:50:41 2022 +0100

    Add Roles from Azure OAUTH Response in security manager as it is currently not able map any AD roles to airflow ones (#20707)
    
    (cherry picked from commit 088cbf2835cb6e29deb555a931bafc6b73deadef)
---
 airflow/www/fab_security/manager.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/airflow/www/fab_security/manager.py b/airflow/www/fab_security/manager.py
index 85341e9..e340c17 100644
--- a/airflow/www/fab_security/manager.py
+++ b/airflow/www/fab_security/manager.py
@@ -591,6 +591,7 @@ class BaseSecurityManager:
                 "last_name": me.get("family_name", ""),
                 "id": me["oid"],
                 "username": me["oid"],
+                "role_keys": me.get("roles", []),
             }
         # for OpenShift
         if provider == "openshift":