factory

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 25 Imported by: 0

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