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

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)

Source Files