recoveryauth

package
v0.0.0-...-6aee27a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteExpiredRecoveryCodes

func DeleteExpiredRecoveryCodes(ctx context.Context, db *database.Connection, expiryInMinutes int64) error

DeleteExpiredRecoveryCodes removes recovery codes from the database that are older than X minutes old Duration is determined by looking at the environment configuration

Types

type RecoveryAuthScheme

type RecoveryAuthScheme struct {
	Expiry time.Duration
}

func New

func New(maxAge time.Duration) RecoveryAuthScheme

func (RecoveryAuthScheme) BindRoutes

func (p RecoveryAuthScheme) BindRoutes(r chi.Router, bridge authschemes.AShirtAuthBridge)

func (RecoveryAuthScheme) Flags

func (RecoveryAuthScheme) Flags() []string

Flags returns an empty string (no supported auth flags for recovery)

func (RecoveryAuthScheme) FriendlyName

func (RecoveryAuthScheme) FriendlyName() string

FriendlyName returns "ASHIRT User Recovery"

func (RecoveryAuthScheme) Name

func (RecoveryAuthScheme) Name() string

Name returns the name of this authscheme

func (RecoveryAuthScheme) Type

func (RecoveryAuthScheme) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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