session

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 1 module, 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

View Source
const (
	ScopeAttribute        = "scope"
	LoginTimeAttribute    = "login-time"
	UsernameAttribute     = "username"
	LoginFlashAttribute   = "login"
	ConsentFlashAttribute = "consent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSession added in v0.7.0

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

func (DefaultSession) GetApprovedScopes added in v0.7.0

func (d DefaultSession) GetApprovedScopes() oidcsdk.Arguments

func (DefaultSession) GetAttribute added in v0.7.0

func (d DefaultSession) GetAttribute(name string) interface{}

func (DefaultSession) GetLoginTime added in v0.7.0

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

func (DefaultSession) GetScope added in v0.7.0

func (d DefaultSession) GetScope() string

func (DefaultSession) GetUsername added in v0.7.0

func (d DefaultSession) GetUsername() string

func (DefaultSession) IsConsentSubmitted added in v0.7.0

func (d DefaultSession) IsConsentSubmitted() bool

func (DefaultSession) IsLoginDone added in v0.7.0

func (d DefaultSession) IsLoginDone() bool

func (DefaultSession) Logout added in v0.7.0

func (d DefaultSession) Logout()

func (DefaultSession) Save added in v0.7.0

func (d DefaultSession) Save() error

func (DefaultSession) SetAttribute added in v0.7.0

func (d DefaultSession) SetAttribute(name string, value interface{})

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(w http.ResponseWriter, r *http.Request) (oidcsdk.ISession, error)

Jump to

Keyboard shortcuts

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