Documentation
¶
Index ¶
- func CreateCoreCryptoComponents(conf config.PubkeyConfig) (*cryptoComponentsHolder, error)
- func CreateOTPHandler(configs *config.Configs) (handlers.TOTPHandler, error)
- func CreateSecureOTPHandler(configs *config.Configs) (handlers.SecureOtpHandler, error)
- func CreateServiceResolver(configs *config.Configs, cryptoComponents *cryptoComponentsHolder, ...) (core.ServiceResolver, error)
- func StartWebServer(configs config.Configs, serviceResolver core.ServiceResolver, ...) (io.Closer, error)
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.
Click to show internal directories.
Click to hide internal directories.