kyungjunleeme commented on code in PR #53567:
URL: https://github.com/apache/airflow/pull/53567#discussion_r2219318823


##########
airflow-core/src/airflow/api_fastapi/core_api/security.py:
##########
@@ -62,16 +64,33 @@
     "information (such as user identity and scope) to authenticate subsequent 
requests. "
     "To learn more about Airflow public API authentication, please read 
https://airflow.apache.org/docs/apache-airflow/stable/security/api.html.";
 )
-oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/token", 
description=auth_description)
+oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/token", 
description=auth_description, auto_error=False)

Review Comment:
   I changed option `auto_error=False` because resolve_user_from_token role is 
to raise error. 



-- 
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