Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Flask Login user setting for Flask 2.2 and Flask-Login 0.6.2 (#25318
) The Google openid auth backend of ours had hard-coded way of seting the current user which was not compatible with Flask 2.2 With Flask-login 0.6.2 the user is stored in g module of flask, where before, it was stored in _request_ctx_stack. Unforatunately the google_openid rather than using _update_request_context_with_user set the user directly in context. In Flask-login 0.6.2 this stopped working. This change switches to use the _update_request_context_with_user method rather than directly storing user in context which works before and after the Flask-Login 0.6.2 change.
- Loading branch information