session

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	SessionStore sessions.Store
	SessionName  string
}

func NewManager

func NewManager(secretConfig *config.SecretConfig) *Manager

func (*Manager) RetrieveUserSession

func (m *Manager) RetrieveUserSession(r *http.Request) (oidcsdk.ISession, error)

func (*Manager) StoreUserSession

func (m *Manager) StoreUserSession(w http.ResponseWriter, r *http.Request, sess oidcsdk.ISession) error

type Session

type Session struct {
	Username  string
	Scope     string
	LoginTime *time.Time
}

func (Session) GetApprovedScopes

func (d Session) GetApprovedScopes() oidcsdk.Arguments

func (Session) GetLoginTime

func (d Session) GetLoginTime() *time.Time

func (Session) GetScope

func (d Session) GetScope() string

func (Session) GetUsername

func (d Session) GetUsername() string

func (Session) IsConsentSubmitted

func (d Session) IsConsentSubmitted() bool

func (Session) IsLoginDone

func (d Session) IsLoginDone() bool

Jump to

Keyboard shortcuts

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