You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
default_webserver_config.py isn't compatible with the latest changes #36702
# from airflow.www.fab_security.manager import AUTH_LDAP# from airflow.www.fab_security.manager import AUTH_OAUTH# from airflow.www.fab_security.manager import AUTH_OID# from airflow.www.fab_security.manager import AUTH_REMOTE_USER
they should be
# from airflow.auth.managers.fab.security_manager.override import AUTH_LDAP# from airflow.auth.managers.fab.security_manager.override import AUTH_OAUTH# from airflow.auth.managers.fab.security_manager.override import AUTH_OID# from airflow.auth.managers.fab.security_manager.override import AUTH_REMOTE_USER
What you think should happen instead?
No response
How to reproduce
for oauth users just keep using the old webserver_config.py
from airflow.www.fab_security.manager import AUTH_OAUTH
will cause
ImportError: cannot import name 'AUTH_OAUTH' from 'airflow.www.fab_security.manager' (/home/zach/KeplerGroup/KIP-Airflow/.venv/lib/python3.11/site-packages/airflow/www/fab_security/manager.py)
Activity
potiuk commentedon Jan 10, 2024
cc: @vincbeck
vincbeck commentedon Jan 10, 2024
It should have been fixed in #35302
vincbeck commentedon Jan 10, 2024
Oh, some are missing, let me add them
vincbeck commentedon Jan 10, 2024
See fix: #36719
vincbeck commentedon Jan 10, 2024
You might want to add the fix to 2.8.1