factory

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCoreCryptoComponents

func CreateCoreCryptoComponents(conf config.PubkeyConfig) (*cryptoComponentsHolder, error)

CreateCoreCryptoComponents will create core crypto components

func CreateOTPHandler

func CreateOTPHandler(configs *config.Configs) (handlers.TOTPHandler, error)

CreateOTPHandler will create a new otp handler instance

func CreateSecureOTPHandler added in v1.0.14

func CreateSecureOTPHandler(configs *config.Configs) (handlers.SecureOtpHandler, error)

CreateSecureOTPHandler will create a new otp handler instance

func CreateServiceResolver

func CreateServiceResolver(
	configs *config.Configs,
	cryptoComponents *cryptoComponentsHolder,
	httpClientWrapper core.HttpClientWrapper,
	registeredUsersDB core.StorageWithIndex,
	twoFactorHandler handlers.TOTPHandler,
	secureOtpHandler handlers.SecureOtpHandler,
) (core.ServiceResolver, error)

CreateServiceResolver will create a new service resolver component

func StartWebServer

func StartWebServer(
	configs config.Configs,
	serviceResolver core.ServiceResolver,
	authServer authentication.AuthServer,
	tokenHandler authentication.AuthTokenHandler,
	whitelistHandler core.NativeAuthWhitelistHandler,
	statusMetricsHandler core.StatusMetricsHandler,
) (io.Closer, error)

StartWebServer creates and starts a web server able to respond with the metrics holder information

Types

This section is empty.

Jump to

Keyboard shortcuts

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