Versions in this module Expand all Collapse all v0 v0.3.0 Oct 20, 2019 Changes in this version + type ConsoleMultifactor struct + func NewConsoleMultifactor() (*ConsoleMultifactor, error) + func (c *ConsoleMultifactor) ReadCode(Factor) (string, error) + func (c *ConsoleMultifactor) RequestUsernamePassword() (username, password string, err error) + func (c *ConsoleMultifactor) Select(factors []Factor) (Factor, error) + type Dance struct + func New(oktaDomain string, options ...Option) *Dance + func (d *Dance) Authenticate(ctx context.Context, username, password string, mfa Multifactor) (SessionToken, error) + func (d *Dance) Authorize(ctx context.Context, sessionToken SessionToken) (SessionID, error) + func (d *Dance) CloseSession(ctx context.Context, sessionID SessionID) error + func (d *Dance) RefreshSession(ctx context.Context, sessionID SessionID) (*Session, error) + func (d *Dance) Session(ctx context.Context, sessionID SessionID) (*Session, error) + type Factor interface + FactorType func() string + ID func() string + Provider func() string + type Multifactor interface + ReadCode func(Factor) (string, error) + Select func([]Factor) (Factor, error) + type Option interface + func WithClientID(clientID string) Option + func WithHTTPClient(hc *http.Client) Option + func WithLogger(log func(...interface{})) Option + func WithPrettyJSON() Option + type Session struct + Amr []string + CreatedAt time.Time + ExpiresAt time.Time + ID string + Idp struct{ ... } + LastFactorVerification time.Time + LastPasswordVerification time.Time + Links struct{ ... } + Login string + MfaActive bool + Status string + UserID string + type SessionID string + type SessionToken string