Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadToken = errors.New("Invalid CSRF token received in a form/header.")
View Source
var ErrMissingToken = errors.New("The CSRF token cannot be found.")
Functions ¶
func DecodeToken ¶
func EncodeToken ¶
Types ¶
type Constant ¶
type Constant string
Basic token for testing and debugging purposes.
func (Constant) Authenticate ¶
type SHA256 ¶
type SHA256 struct { // Length of the one time token Length int // Secret known only to token storage Secret []byte }
func (SHA256) Authenticate ¶
type Token ¶
type TokenFactory ¶
type TokenStorage ¶
Click to show internal directories.
Click to hide internal directories.