sesh

package
v0.1178.0-MLPAB2062log... Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsrfSession added in v0.1051.0

type CsrfSession struct {
	IsNew bool
	Token string
}

func (CsrfSession) Valid added in v0.1051.0

func (s CsrfSession) Valid() bool

type InvalidSessionError

type InvalidSessionError string

func (InvalidSessionError) Error

func (e InvalidSessionError) Error() string

type LoginSession

type LoginSession struct {
	IDToken          string
	Sub              string
	Email            string
	OrganisationID   string
	OrganisationName string
}

func (LoginSession) SessionID added in v0.986.0

func (s LoginSession) SessionID() string

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 (OneLoginSession) Valid

func (s OneLoginSession) Valid() bool

type PaymentSession

type PaymentSession struct {
	PaymentID string
}

func (PaymentSession) Valid

func (s PaymentSession) Valid() bool

type Store

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

func NewStore added in v0.1051.0

func NewStore(keyPairs [][]byte) *Store

func (*Store) ClearLogin added in v0.1051.0

func (s *Store) ClearLogin(r *http.Request, w http.ResponseWriter) error

func (*Store) ClearPayment added in v0.1051.0

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

func (*Store) Csrf added in v0.1051.0

func (s *Store) Csrf(r *http.Request) (*CsrfSession, error)

func (*Store) Login added in v0.1051.0

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

func (*Store) OneLogin added in v0.1051.0

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

func (*Store) Payment added in v0.1051.0

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

func (*Store) SetCsrf added in v0.1051.0

func (s *Store) SetCsrf(r *http.Request, w http.ResponseWriter, csrfSession *CsrfSession) error

func (*Store) SetLogin added in v0.1051.0

func (s *Store) SetLogin(r *http.Request, w http.ResponseWriter, donorSession *LoginSession) error

func (*Store) SetOneLogin added in v0.1051.0

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

func (*Store) SetPayment added in v0.1051.0

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

Jump to

Keyboard shortcuts

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