sesh

package
v0.930.0-mockerynewcon... Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLoginSession

func ClearLoginSession(store Store, r *http.Request, w http.ResponseWriter) error

func ClearPayment

func ClearPayment(store Store, r *http.Request, w http.ResponseWriter) error

func SetLoginSession

func SetLoginSession(store sessions.Store, r *http.Request, w http.ResponseWriter, donorSession *LoginSession) error

func SetOneLogin

func SetOneLogin(store sessions.Store, r *http.Request, w http.ResponseWriter, oneLoginSession *OneLoginSession) error

func SetPayment

func SetPayment(store sessions.Store, r *http.Request, w http.ResponseWriter, paymentSession *PaymentSession) error

Types

type InvalidSessionError

type InvalidSessionError string

func (InvalidSessionError) Error

func (e InvalidSessionError) Error() string

type LoginSession

type LoginSession struct {
	IDToken string
	Sub     string
	Email   string
}

func Login

func Login(store sessions.Store, r *http.Request) (*LoginSession, error)

func (LoginSession) Valid

func (s LoginSession) Valid() bool

type MissingSessionError

type MissingSessionError string

func (MissingSessionError) Error

func (e MissingSessionError) Error() string

type OneLoginSession

type OneLoginSession struct {
	State     string
	Nonce     string
	Locale    string
	Redirect  string
	SessionID string
	LpaID     string
}

func OneLogin

func OneLogin(store sessions.Store, r *http.Request) (*OneLoginSession, error)

func (OneLoginSession) Valid

func (s OneLoginSession) Valid() bool

type PaymentSession

type PaymentSession struct {
	PaymentID string
}

func Payment

func Payment(store sessions.Store, r *http.Request) (*PaymentSession, error)

func (PaymentSession) Valid

func (s PaymentSession) Valid() bool

type Store

type Store = sessions.Store

Jump to

Keyboard shortcuts

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