manager

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenerateCode

func DefaultGenerateCode() (string, error)

Types

type GenerateCodeFunc

type GenerateCodeFunc func() (string, error)

type SessionManager

type SessionManager struct {
	GenerateCode   GenerateCodeFunc
	Clock          clockwork.Clock
	ValidityWindow time.Duration
	// contains filtered or unexported fields
}

func NewSessionManager

func NewSessionManager(sRepo session.SessionRepo, skRepo session.SessionKeyRepo) *SessionManager

func (*SessionManager) AttachGroups added in v0.6.0

func (m *SessionManager) AttachGroups(sessionID string, groups []string) (*session.Session, error)

func (*SessionManager) AttachRemoteIdentity

func (m *SessionManager) AttachRemoteIdentity(sessionID string, ident oidc.Identity) (*session.Session, error)

func (*SessionManager) AttachUser

func (m *SessionManager) AttachUser(sessionID string, userID string) (*session.Session, error)

func (*SessionManager) ExchangeKey

func (m *SessionManager) ExchangeKey(key string) (string, error)

func (*SessionManager) Get

func (m *SessionManager) Get(sessionID string) (*session.Session, error)

func (*SessionManager) Kill

func (m *SessionManager) Kill(sessionID string) (*session.Session, error)

func (*SessionManager) NewSession

func (m *SessionManager) NewSession(connectorID, clientID, clientState string, redirectURL url.URL, nonce string, register bool, scope []string) (string, error)

func (*SessionManager) NewSessionKey

func (m *SessionManager) NewSessionKey(sessionID string) (string, error)

Jump to

Keyboard shortcuts

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