Documentation ¶
Index ¶
- Constants
- type DefaultSession
- func (d DefaultSession) GetApprovedScopes() sdk.Arguments
- func (d DefaultSession) GetAttribute(name string) interface{}
- func (d DefaultSession) GetLoginTime() *time.Time
- func (d DefaultSession) GetScope() string
- func (d DefaultSession) GetUsername() string
- func (d DefaultSession) IsConsentSubmitted() bool
- func (d DefaultSession) IsLoginDone() bool
- func (d DefaultSession) Logout()
- func (d DefaultSession) Save() error
- func (d DefaultSession) SetAttribute(name string, value interface{})
- type Manager
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 ¶
type DefaultSession struct {
// contains filtered or unexported fields
}
func (DefaultSession) GetApprovedScopes ¶
func (d DefaultSession) GetApprovedScopes() sdk.Arguments
func (DefaultSession) GetAttribute ¶ added in v0.8.0
func (d DefaultSession) GetAttribute(name string) interface{}
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
func (DefaultSession) Logout ¶ added in v0.8.0
func (d DefaultSession) Logout()
func (DefaultSession) Save ¶ added in v0.8.0
func (d DefaultSession) Save() error
func (DefaultSession) SetAttribute ¶ added in v0.8.0
func (d DefaultSession) SetAttribute(name string, value interface{})
type Manager ¶
type Manager struct { SessionStore *sessions.CookieStore CookieName string }
func NewManager ¶
func NewManager(config *config.DemoConfig) *Manager
func (*Manager) RetrieveUserSession ¶
Click to show internal directories.
Click to hide internal directories.