totp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUseCases

func BuildUseCases(p *TOTPPlugin) *usecases.UseCases

func MigrationSet

func MigrationSet(provider string) migrations.MigrationSet

MigrationSet returns the TOTP plugin migrations as a migration set compatible with the shared migrator.

func Routes

func Routes(p *TOTPPlugin) []models.Route

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func BuildAPI

func BuildAPI(plugin *TOTPPlugin) *API

func (*API) UseCases

func (a *API) UseCases() *usecases.UseCases

type TOTPHookID

type TOTPHookID string
const (
	HookIDTOTPIntercept TOTPHookID = "totp.intercept"
)

func (TOTPHookID) String

func (id TOTPHookID) String() string

type TOTPPlugin

type TOTPPlugin struct {
	Api *API
	// contains filtered or unexported fields
}

func New

func New(config types.TOTPPluginConfig) *TOTPPlugin

func (*TOTPPlugin) Close

func (p *TOTPPlugin) Close() error

func (*TOTPPlugin) Config

func (p *TOTPPlugin) Config() any

func (*TOTPPlugin) DependsOn

func (p *TOTPPlugin) DependsOn() []string

func (*TOTPPlugin) Hooks

func (p *TOTPPlugin) Hooks() []models.Hook

func (*TOTPPlugin) Init

func (p *TOTPPlugin) Init(ctx *models.PluginContext) error

func (*TOTPPlugin) Metadata

func (p *TOTPPlugin) Metadata() models.PluginMetadata

func (*TOTPPlugin) Migrations

func (p *TOTPPlugin) Migrations(provider string) []migrations.Migration

func (*TOTPPlugin) Routes

func (p *TOTPPlugin) Routes() []models.Route

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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