You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Flask-Login to manage user sessions. Getting user preferences from the OAuth content server can be a long running task, so I wanted to use a background callback. However, background callbacks don't have the 'request' or Flask-Login 'current_user' proxies available because they're not responding as a Flask thread.
If the user session cookie value was available in background callbacks I could make authenticated requests in the Celery task, which would remove a lot of hacky multi-callback message passing.
The text was updated successfully, but these errors were encountered:
I'm using Flask-Login to manage user sessions. Getting user preferences from the OAuth content server can be a long running task, so I wanted to use a background callback. However, background callbacks don't have the 'request' or Flask-Login 'current_user' proxies available because they're not responding as a Flask thread.
If the user session cookie value was available in background callbacks I could make authenticated requests in the Celery task, which would remove a lot of hacky multi-callback message passing.
The text was updated successfully, but these errors were encountered: