cookie

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCookie

func ClearCookie(w http.ResponseWriter, r *http.Request)

ClearCookie get rid of the existing cookie

func Configure added in v0.9.0

func Configure()

Configure see main.go configure()

func Cookie(r *http.Request) (string, error)

Cookie get the vouch jwt cookie

func SameSite added in v0.10.4

func SameSite() http.SameSite

SameSite return cfg.Cfg.Cookie.SameSite as http.Samesite if cfg.Cfg.Cookie.SameSite is unconfigured return http.SameSite(0) see https://github.com/vouch/vouch-proxy/issues/210

func SetCookie

func SetCookie(w http.ResponseWriter, r *http.Request, val string)

SetCookie http

Types

This section is empty.

Jump to

Keyboard shortcuts

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