Documentation ¶
Index ¶
- func DefaultGenerateCode() (string, error)
- type GenerateCodeFunc
- type SessionManager
- func (m *SessionManager) AttachGroups(sessionID string, groups []string) (*session.Session, error)
- func (m *SessionManager) AttachRemoteIdentity(sessionID string, ident oidc.Identity) (*session.Session, error)
- func (m *SessionManager) AttachUser(sessionID string, userID string) (*session.Session, error)
- func (m *SessionManager) ExchangeKey(key string) (string, error)
- func (m *SessionManager) Get(sessionID string) (*session.Session, error)
- func (m *SessionManager) Kill(sessionID string) (*session.Session, error)
- func (m *SessionManager) NewSession(connectorID, clientID, clientState string, redirectURL url.URL, nonce string, ...) (string, error)
- func (m *SessionManager) NewSessionKey(sessionID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGenerateCode ¶
Types ¶
type GenerateCodeFunc ¶
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 (*SessionManager) AttachRemoteIdentity ¶
func (*SessionManager) AttachUser ¶
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 (*SessionManager) NewSessionKey ¶
func (m *SessionManager) NewSessionKey(sessionID string) (string, error)
Click to show internal directories.
Click to hide internal directories.