Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WSGI middleware example in the doc by import AUTH_REMOTE_USER from fab #34721

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

hussein-awala
Copy link
Member

closes: #34720

The module airflow.www.fab_security.manager doesn't have AUTH_REMOTE_USER:

ImportError: cannot import name 'AUTH_REMOTE_USER' from 'airflow.www.fab_security.manager'

and we should not import objects from 3rd party packages through Airflow package to avoid circular import.

This PR updates the example in the doc by importing the object from flask_appbuilder.const.

@hussein-awala hussein-awala added the type:bug-fix Changelog: Bug Fixes label Oct 2, 2023
@hussein-awala hussein-awala added this to the Airflow 2.7.2 milestone Oct 2, 2023
@hussein-awala hussein-awala removed the type:bug-fix Changelog: Bug Fixes label Oct 2, 2023
@uranusjr
Copy link
Member

uranusjr commented Oct 3, 2023

I wonder if this should be covered by AIP-56 cc @vincbeck

@vincbeck
Copy link
Contributor

vincbeck commented Oct 3, 2023

I wonder if this should be covered by AIP-56 cc @vincbeck

It is something that we might have moved aspart of AIP-56, but this definitely helps AIP-56 :) Thank you!

@uranusjr uranusjr merged commit feaa508 into apache:main Oct 4, 2023
43 checks passed
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Oct 4, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 5, 2023
@ephraimbuddy ephraimbuddy added type:doc-only Changelog: Doc Only and removed type:bug-fix Changelog: Bug Fixes labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AUTH_REMOTE_USER is gone
6 participants