xsrf

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var XSRFSigningPackage = XSRFSigningPackages{}

Functions

func Confirm

func Confirm(xsrfValue string, sessionID string) bool

func GenerateXSRFForSession

func GenerateXSRFForSession(sessionIDToAttach string, timeToLive time.Duration) (string, error)

Types

type XSRFSigningPackages

type XSRFSigningPackages struct {
	Anonymous     *signing.SigningPackage // Used for Login XSRF
	Authenticated *signing.SigningPackage // Used for Authenticated requests
}

Jump to

Keyboard shortcuts

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