Expand description
Re-exports the csrf
crate.
Structs§
- AesGcm
Csrf Protection - Uses AES-GCM to provide signed, encrypted CSRF tokens and cookies.
- ChaCha20
Poly1305 Csrf Protection - Uses ChaCha20Poly1305 to provide signed, encrypted CSRF tokens and cookies.
- Csrf
Cookie - A signed, encrypted CSRF cookie that is suitable to be displayed to end users.
- Csrf
Token - A signed, encrypted CSRF token that is suitable to be displayed to end users.
- Hmac
Csrf Protection - Uses HMAC to provide authenticated CSRF tokens and cookies.
- Multi
Csrf Protection - This is used when one wants to rotate keys or switch from implementation to another. It accepts
1 + N
instances ofCsrfProtection
and uses only the first to generate tokens and cookies. TheN
remaining instances are used only for parsing. - Unencrypted
Csrf Cookie - Internal represenation of an unencrypted CSRF cookie. This is not suitable to send to end users.
- Unencrypted
Csrf Token - Internal represenation of an unencrypted CSRF token. This is not suitable to send to end users.
Enums§
- Csrf
Error - An
enum
of all CSRF related errors.
Traits§
- Csrf
Protection - The base trait that allows a developer to add CSRF protection to an application.