Crate csrf [] [src]

Crate providing cross-site request forgery (CSRF) protection primitives

Structs

AesGcmCsrfProtection

Uses AES-GCM to provide signed, encrypted CSRF tokens and cookies.

CsrfCookie

An encoded CSRF cookie.

CsrfToken
UnencryptedCsrfCookie

Internal represenation of unencrypted data.

UnencryptedCsrfToken

Internal represenation of unencrypted data.

Enums

CsrfConfigError
CsrfError

An enum of all CSRF related errors.

Constants

CSRF_COOKIE_NAME

The name of the cookie for the CSRF validation data and signature.

CSRF_FORM_FIELD

The name of the form field for the CSRF token.

CSRF_HEADER

The name of the HTTP header for the CSRF token.

CSRF_QUERY_STRING

The name of the query parameter for the CSRF token.

Traits

CsrfProtection