KH-Coder865 commented on issue #59600:
URL: https://github.com/apache/airflow/issues/59600#issuecomment-3670273345

   This happens because auth_user_oauth and login_user require an active Flask 
request context to access the session. Outside a request (e.g., CLI or 
background task), they fail with “Working outside of request context.” Wrapping 
the calls in app.app_context() and app.test_request_context() or skipping 
session-related calls when generating tokens programmatically resolves the 
issue. The docs example assumes a request context, which isn’t always present.
   


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