github-actions[bot] opened a new pull request, #72943:
URL: https://github.com/apache/airflow/pull/72943

   `HTTPBearer` and `OAuth2PasswordBearer` both extract the same `Authorization:
   Bearer` header, so declaring both as dependencies produces the same string
   twice. `get_user` had a dead branch for the OAuth2 side (the bearer branch
   above it always matched first), and `collect_request_tokens` deduped the
   duplicate anyway.
   
   Keep `oauth2_scheme` declared as an unused parameter so the OpenAPI security
   spec is unchanged and ``/docs`` still renders the OAuth2 password login form.
   Only the runtime dead code goes.
   (cherry picked from commit 677b4ab197c309fa2c3d210bd9536490f99ee753)
   
   Co-authored-by: Pierre Jeambrun <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to