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:
connpsycopg.Connection

An open accounts-database connection.

statestr

The random CSRF state Google will echo back.

noncestr

The OIDC nonce bound into the requested id_token.

code_verifierstr

The PKCE verifier whose challenge was sent to Google.

redirect_tostr, optional

A same-site path to land on after login. Default None.