mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 14:52:01 +00:00

## Summary <!-- What's the purpose of the change? What does it do, and why? --> Apply auto fixes to cases where the names have changed in Airflow 3 in AIR302 and split the huge test cases into different test cases based on proivder ## Test Plan <!-- How was it tested? --> the test cases has been split into multiple for easier checking
55 lines
1.1 KiB
Python
55 lines
1.1 KiB
Python
from __future__ import annotations
|
|
|
|
from airflow.api.auth.backend.basic_auth import (
|
|
CLIENT_AUTH,
|
|
auth_current_user,
|
|
init_app,
|
|
requires_authentication,
|
|
)
|
|
|
|
CLIENT_AUTH
|
|
init_app()
|
|
auth_current_user()
|
|
requires_authentication()
|
|
|
|
from airflow.api.auth.backend.kerberos_auth import (
|
|
CLIENT_AUTH,
|
|
find_user,
|
|
init_app,
|
|
log,
|
|
requires_authentication,
|
|
)
|
|
|
|
log()
|
|
CLIENT_AUTH
|
|
find_user()
|
|
init_app()
|
|
requires_authentication()
|
|
|
|
from airflow.auth.managers.fab.api.auth.backend.kerberos_auth import (
|
|
CLIENT_AUTH,
|
|
find_user,
|
|
init_app,
|
|
log,
|
|
requires_authentication,
|
|
)
|
|
|
|
log()
|
|
CLIENT_AUTH
|
|
find_user()
|
|
init_app()
|
|
requires_authentication()
|
|
|
|
from airflow.auth.managers.fab.fab_auth_manager import FabAuthManager
|
|
from airflow.auth.managers.fab.security_manager.override import (
|
|
MAX_NUM_DATABASE_USER_SESSIONS,
|
|
FabAirflowSecurityManagerOverride,
|
|
)
|
|
|
|
FabAuthManager()
|
|
MAX_NUM_DATABASE_USER_SESSIONS
|
|
FabAirflowSecurityManagerOverride()
|
|
|
|
from airflow.www.security import FabAirflowSecurityManagerOverride
|
|
|
|
FabAirflowSecurityManagerOverride()
|