Expand description
Cookie/session strategy — integrates with doido_controller::session.
Structs§
- Session
Strategy - Cookie/session strategy using the encrypted cookie store.
Constants§
- SESSION_
COOKIE - Cookie name for the encrypted session (matches
doido_controller::context). - USER_
ID_ KEY - Session data key for the authenticated user’s id.
Functions§
- clear_
session_ cookie - Clear the session cookie in a response.
- encode_
session_ cookie - Encode the session into a
Set-Cookievalue for_doido_session. - from_
config - Build a session strategy from config (uses the process-global secret key base).
- sign_
in_ session - Store
user_idin the session bag (call after successful sign-in). - sign_
out_ session - Clear the authenticated user from the session.