csrftoken

package
v0.0.62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMiddleware added in v0.0.22

func NewMiddleware(opts Opts) func(http.Handler) http.Handler

Types

type GetExpectedCSRFToken

type GetExpectedCSRFToken func(r *http.Request) (Token, SessionOK, error)

type GetSubmittedCSRFToken

type GetSubmittedCSRFToken func(r *http.Request) (Token, error)

type Opts

type Opts struct {
	GetExpectedCSRFToken  GetExpectedCSRFToken
	GetSubmittedCSRFToken GetSubmittedCSRFToken
}

type SessionOK

type SessionOK = bool

type Token

type Token = string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL