Module csrf::core [] [src]

Module containing the core functionality for CSRF protection.

Structs

CsrfConfig

The configuation used to initialize CsrfProtection.

CsrfConfigBuilder

A utility to help build a CsrfConfig in an API backwards compatible way.

CsrfCookie

A decoded CSRF cookie.

CsrfToken

An encoded CSRF token.

Enums

Method

Wrapper type of HTTP methods for cross libary configuration.

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

Base trait that allows an application to be wrapped with CSRF protection.