cookiemanager

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterOutAuthTokenCookie

func FilterOutAuthTokenCookie(req *http.Request, names ...string)

Types

type CookieManager

type CookieManager struct {
	// contains filtered or unexported fields
}

func New

func New(tm *tokenmanager.TokenManager, provider, domain, issuer string) *CookieManager

func (*CookieManager) ClearCookies

func (cm *CookieManager) ClearCookies(w http.ResponseWriter) error

func (*CookieManager) Nonce added in v0.4.1

func (cm *CookieManager) Nonce(w http.ResponseWriter, req *http.Request) string

func (*CookieManager) SetAuthTokenCookie

func (cm *CookieManager) SetAuthTokenCookie(w http.ResponseWriter, userID, email, sessionID, host string, extraClaims map[string]any) error

func (*CookieManager) SetIDTokenCookie

func (cm *CookieManager) SetIDTokenCookie(w http.ResponseWriter, req *http.Request, authToken *jwt.Token) error

func (*CookieManager) SetNonce added in v0.4.1

func (cm *CookieManager) SetNonce(w http.ResponseWriter, nonce string)

func (*CookieManager) ValidateAuthTokenCookie

func (cm *CookieManager) ValidateAuthTokenCookie(req *http.Request) (*jwt.Token, error)

func (*CookieManager) ValidateAuthorizationHeader added in v0.0.25

func (cm *CookieManager) ValidateAuthorizationHeader(req *http.Request) (*jwt.Token, error)

func (*CookieManager) ValidateIDTokenCookie

func (cm *CookieManager) ValidateIDTokenCookie(req *http.Request, authToken *jwt.Token) error

Jump to

Keyboard shortcuts

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