demosession

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSession

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

func (DefaultSession) GetApprovedScopes

func (d DefaultSession) GetApprovedScopes() sdk.Arguments

func (DefaultSession) GetLoginTime

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

func (DefaultSession) GetScope

func (d DefaultSession) GetScope() string

func (DefaultSession) GetUsername

func (d DefaultSession) GetUsername() string

func (DefaultSession) IsConsentSubmitted

func (d DefaultSession) IsConsentSubmitted() bool

func (DefaultSession) IsLoginDone

func (d DefaultSession) IsLoginDone() bool

type Manager

type Manager struct {
	SessionStore *sessions.CookieStore
	CookieName   string
}

func NewManager

func NewManager(config *config.DemoConfig) *Manager

func (*Manager) RetrieveUserSession

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

func (*Manager) StoreUserSession

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

Jump to

Keyboard shortcuts

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