auth_factory

package
v0.0.0-...-7edcfce Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LoginphashSmsTokenProtocol = "login_phash_sms_token"
View Source
const LoginphashTokenProtocol = "login_phash_token"

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultAuthFactory

type DefaultAuthFactory struct {
	Users            auth_session.WithUserSessionManager
	SmsManager       sms.SmsManager
	SignatureManager signature.SignatureManager
}

func (*DefaultAuthFactory) Create

func (f *DefaultAuthFactory) Create(protocol string) (auth.AuthHandler, error)

type LoginphashSmsToken

type LoginphashSmsToken struct {
	LoginphashToken
	Sms auth.AuthHandler
}

func NewLoginphashSmsToken

func NewLoginphashSmsToken(users auth_session.WithUserSessionManager, smsManager sms.SmsManager) *LoginphashSmsToken

func (*LoginphashSmsToken) Init

func (l *LoginphashSmsToken) Init(cfg config.Config, log logger.Logger, vld validator.Validator, configPath ...string) error

func (*LoginphashSmsToken) InitSms

func (l *LoginphashSmsToken) InitSms(cfg config.Config, log logger.Logger, vld validator.Validator, configPath ...string) error

func (*LoginphashSmsToken) SetAuthManager

func (l *LoginphashSmsToken) SetAuthManager(manager auth.AuthManager)

type LoginphashToken

type LoginphashToken struct {
	auth.AuthSchema

	Login *auth_login_phash.LoginHandler
	Token *auth_token.AuthNewTokenHandler
}

func (*LoginphashToken) Handlers

func (l *LoginphashToken) Handlers() []auth.AuthHandler

func (*LoginphashToken) Init

func (l *LoginphashToken) Init(cfg config.Config, log logger.Logger, vld validator.Validator, configPath ...string) error

func (*LoginphashToken) InitLoginToken

func (l *LoginphashToken) InitLoginToken(cfg config.Config, log logger.Logger, vld validator.Validator, configPath ...string) error

func (*LoginphashToken) SetAuthManager

func (l *LoginphashToken) SetAuthManager(manager auth.AuthManager)

Jump to

Keyboard shortcuts

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