Categorygithub.com/volatiletech/authboss-clientstate
modulepackage
0.0.0-20230313034706-0b930a6c0713
Repository: https://github.com/volatiletech/authboss-clientstate.git
Documentation: pkg.go.dev

# README

Authboss Client State

Session and Cookie ClientStateRW implementations using Gorilla.

Assuming you're using Gorilla in your web application you can easily use this package to augment Gorilla to be used with authboss or use this package's wrappers directly.

# Functions

NewCookieStorer constructor simply wraps the constructor for securecookie.New.
NewCookieStorerFromExisting takes a preconfigured secure cookie instance and simply uses it.
NewSessionStorer creates a new gorilla sessions.CookieStore and uses that for underlying storage.
NewSessionStorerFromExisting takes a store object that's already configured and uses it directly.

# Structs

CookieStorer writes and reads cookies to an underlying gorilla secure cookie storage.
SessionState is an authboss.ClientState implementation that holds the request's session values for the duration of the request.
SessionStorer stores sessions in a gorilla session store.

# Type aliases

CookieState is an authboss.ClientState implementation to hold cookie state for the duration of the request.