yasuki_core.accounts.oauth_state.stash_login#
- stash_login(conn, state, nonce, code_verifier, redirect_to=None)[source]#
Record the in-flight OAuth state for a login, to be consumed at the callback.
- Parameters:
- conn
psycopg.Connection An open accounts-database connection.
- state
str The random CSRF state Google will echo back.
- nonce
str The OIDC nonce bound into the requested id_token.
- code_verifier
str The PKCE verifier whose challenge was sent to Google.
- redirect_to
str, optional A same-site path to land on after login. Default None.
- conn