Documentation ¶
Index ¶
Constants ¶
View Source
const CSRF_NAME core.Provide = "CSRF"
Variables ¶
This section is empty.
Functions ¶
func CryptoRandom ¶
Types ¶
type Config ¶
type Config struct { GetSecret func() string GetSessionIdentifier func(r *http.Request) string CookieOptions http.Cookie Size int IgnoreMethod []string GetTokenFromRequest func(*http.Request) string }
func DefaultConfig ¶
func InjectCSRF ¶
func InjectCSRF(module *core.DynamicModule) *Config
Click to show internal directories.
Click to hide internal directories.