-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Add SimpleAllAdminMiddleware to allow api usage without auth header in request #49599
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
Add SimpleAllAdminMiddleware to allow api usage without auth header in request #49599
Conversation
I like the idea! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the approach, looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thanks Kalyan! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks, a few nits
airflow-core/tests/unit/api_fastapi/auth/managers/simple/test_middleware.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/auth/managers/simple/middleware.py
Outdated
Show resolved
Hide resolved
…/all_admin_allow_api_calls
…/all_admin_allow_api_calls
airflow-core/src/airflow/api_fastapi/auth/managers/simple/middleware.py
Outdated
Show resolved
Hide resolved
…uth header in request (#49599) * add SimpleAllAdminMiddleware * add tests * update test * update test name * refactor test * sort test order * hardcode endpoints * use session * db_test mark * iterate over app.routes * use fewer endpoints * update comment * update scope (cherry picked from commit 003bf6d) Co-authored-by: Kalyan R <[email protected]>
…uth header in request (#49599) (#49743) * add SimpleAllAdminMiddleware * add tests * update test * update test name * refactor test * sort test order * hardcode endpoints * use session * db_test mark * iterate over app.routes * use fewer endpoints * update comment * update scope (cherry picked from commit 003bf6d) Co-authored-by: Kalyan R <[email protected]>
…n request (#49599) (#49743) * add SimpleAllAdminMiddleware * add tests * update test * update test name * refactor test * sort test order * hardcode endpoints * use session * db_test mark * iterate over app.routes * use fewer endpoints * update comment * update scope (cherry picked from commit 003bf6d) Co-authored-by: Kalyan R <[email protected]>
…n request (apache#49599) * add SimpleAllAdminMiddleware * add tests * update test * update test name * refactor test * sort test order * hardcode endpoints * use session * db_test mark * iterate over app.routes * use fewer endpoints * update comment * update scope
…n request (apache#49599) * add SimpleAllAdminMiddleware * add tests * update test * update test name * refactor test * sort test order * hardcode endpoints * use session * db_test mark * iterate over app.routes * use fewer endpoints * update comment * update scope
closes #49453