Documentation
¶
Index ¶
- Variables
- type Config
- type Engine
- func (e *Engine) BeginAddCredential(ctx context.Context, userID string, ttl time.Duration) ([]byte, error)
- func (e *Engine) BeginLogin(ctx context.Context, slot, userID string, ttl time.Duration) ([]byte, error)
- func (e *Engine) BeginRegistration(ctx context.Context, in RegistrationInput) ([]byte, error)
- func (e *Engine) CredentialIDs(ctx context.Context, userID string) ([][]byte, error)
- func (e *Engine) DeleteUser(ctx context.Context, userID string) error
- func (e *Engine) Extend(ctx context.Context, token string, by time.Duration) (Session, error)
- func (e *Engine) FinishAddCredential(ctx context.Context, userID string, body []byte) error
- func (e *Engine) FinishLogin(ctx context.Context, slot string, body []byte, sessionTTL time.Duration) (Session, error)
- func (e *Engine) FinishRegistration(ctx context.Context, slot string, body []byte) (RegistrationResult, error)
- func (e *Engine) Introspect(ctx context.Context, token string) (Session, error)
- func (e *Engine) Logout(ctx context.Context, token string) error
- func (e *Engine) LogoutAll(ctx context.Context, userID string) error
- func (e *Engine) Recover(ctx context.Context, userID, code string, ttl time.Duration) (RecoverResult, error)
- func (e *Engine) RemoveCredential(ctx context.Context, userID string, credentialID []byte) error
- func (e *Engine) Reset(ctx context.Context, userID string, ttl time.Duration) (string, time.Time, error)
- func (e *Engine) RotateRecovery(ctx context.Context, userID string) (string, error)
- type RecoverResult
- type RegistrationInput
- type RegistrationResult
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = errors.New("invalid request") ErrAuth = errors.New("authentication failed") )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) BeginAddCredential ¶
func (*Engine) BeginLogin ¶
func (*Engine) BeginRegistration ¶
func (*Engine) CredentialIDs ¶
func (*Engine) FinishAddCredential ¶
func (*Engine) FinishLogin ¶
func (*Engine) FinishRegistration ¶
func (*Engine) Introspect ¶
func (*Engine) RemoveCredential ¶
type RecoverResult ¶
type RegistrationInput ¶
type RegistrationResult ¶
Click to show internal directories.
Click to hide internal directories.