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 ¶
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
Click to show internal directories.
Click to hide internal directories.