cookiemanager

package
v0.0.0-...-5dd2f1f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyCookieStore

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

MyCookieStore is a custom cookie state store that implements the authboss.ClientState interface.

func NewMyCookieStore

func NewMyCookieStore(cookieName string) *MyCookieStore

NewMyCookieStore creates a new instance of MyCookieStore.

func (*MyCookieStore) Load

Load loads the client state data for a given client token from the cookie.

func (*MyCookieStore) ReadState

func (m *MyCookieStore) ReadState(r *http.Request) (authboss.ClientState, error)

ReadState implements authboss.ClientStateReadWriter.

func (*MyCookieStore) Save

func (m *MyCookieStore) Save(w http.ResponseWriter, r *http.Request, token string) error

Save saves the client state data for a given client token to the cookie.

func (*MyCookieStore) WriteState

WriteState implements authboss.ClientStateReadWriter.

Jump to

Keyboard shortcuts

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