Expand description
§modo::cookie
Cookie utilities: configuration, key derivation, and re-exports of
axum_extra cookie jar types.
Provides:
CookieConfig— cookie security attributes loaded from YAML config.key_from_config— derives an HMAC signingKeyfrom aCookieConfig.Key— re-export ofaxum_extra::extract::cookie::Key.CookieJar— re-export of the plain (unsigned) cookie jar.SignedCookieJar— re-export of the HMAC-signed cookie jar.PrivateCookieJar— re-export of the encrypted (private) cookie jar.
The primary entry points are CookieConfig (loaded from YAML) and
key_from_config (derives an HMAC Key at startup). The re-exported
jar types are used by the session and flash middleware and can be used
directly in handlers.
This module is always available; no feature flag is required.
Structs§
- Cookie
Config - Cookie security attributes used by the session and flash middleware.
- Cookie
Jar - Extractor that grabs cookies from the request and manages the jar.
- Key
- A cryptographic master key for use with
Signedand/orPrivatejars. - Private
Cookie Jar - Extractor that grabs private cookies from the request and manages the jar.
- Signed
Cookie Jar - Extractor that grabs signed cookies from the request and manages the jar.
Functions§
- key_
from_ config - Derive an HMAC signing
Keyfrom aCookieConfig.