sesh

package
v0.0.0-...-897bb11 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 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

func SetShareCode

func SetShareCode(store sessions.Store, r *http.Request, w http.ResponseWriter, shareCodeSession *ShareCodeSession) error

func SetYoti

func SetYoti(store sessions.Store, r *http.Request, w http.ResponseWriter, yotiSession *YotiSession) 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 ShareCodeSession

type ShareCodeSession struct {
	LpaID           string
	SessionID       string
	Identity        bool
	DonorFullName   string
	DonorFirstNames string
}

func ShareCode

func ShareCode(store sessions.Store, r *http.Request) (*ShareCodeSession, error)

func (ShareCodeSession) Valid

func (s ShareCodeSession) Valid() bool

type Store

type Store = sessions.Store

type YotiSession

type YotiSession struct {
	Locale              string
	LpaID               string
	CertificateProvider bool
}

func Yoti

func Yoti(store sessions.Store, r *http.Request) (*YotiSession, error)

func (YotiSession) Valid

func (s YotiSession) Valid() bool

Jump to

Keyboard shortcuts

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