Skip to content

Fab Auth Azure SSO Integration Issue #61567

Closed
opensource4you/readme
#44

Description

@chsanjeev

Apache Airflow Provider(s)

fab

Versions of Apache Airflow Providers

Apache-airflow-providers-fab == 3.2.0

Apache Airflow version

Airflow 3.1.7

Operating System

Linux

Deployment

Virtualenv installation

Deployment details

No response

What happened

Azure SSO configurations are setup differently based on the auth model. In the current fab provider specifically if the ID provider is Azure, it is looking for “roles” key from the access_token. However, this is not true in all cases especially if the auth model is managed through AD groups in which case roles will be empty but groups will be returned with all the groups user is part of.

Current Setup:
File Name: airflow.providers.fab.auth_manager.security_manager.override

Issue Code Block:

Under function get_oauth_user_info

If provider=“azure” return value has “role_keys”: me.get(“roles”,[])

What you think should happen instead

Send “key name” as an input so that when the ID provider is azure, based on the Org setup it will enable users to pick either roles or groups to retrieve the access model.

Following is just a suggestion to address the issue. There might be a better way.

Recommended Setup:
File Name: airflow.providers.fab.auth_manager.security_manager.override

Make get_oauth_user_info(self, provider: str, resp: dict[str, Any], role_lookup_key = None)
If provider=“azure”
.. auth_role_key = “role” if role_lookup_key is None else role_lookup_key
.. return {……… , “role_keys”: me.get(auth_role_key, [])}

It becomes configurable rather than always looking for values in the “roles” from access token.

Now in the webserver_config.py
We can setup custom security manager using the super().get_oauth_user_info(provider, response, role_lookup_key)

How to reproduce

Enable Azure Entra SSO with AD Group support rather than role setup.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Feb 7, 2026
  2. abhijeets25012-tech commented on Feb 7, 2026

    @abhijeets25012-tech
    Contributor

    i would like to contribute in it

  3. removed
    needs-triage
    on Feb 7, 2026
  4. Suraj-kumar00 commented on Feb 7, 2026

    @Suraj-kumar00

    Can I work on this issue?

  5. shahar1 commented on Feb 7, 2026

    @shahar1
    Contributor

    @Eason09053360 has opened a PR before this issue has been triaged - I'd like to let him finish working on his PR (also asked to comment on the issue and check if others asked to be assigned first).
    If it gets inactive within a week, I'll assign either of you by order of comments (please tag me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autharea:providerskind:bugkind:featureprovider:fab

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions