Documentation ¶
Index ¶
- Constants
- type DefaultAuthFactory
- type LoginphashSmsToken
- type LoginphashToken
- func (l *LoginphashToken) Handlers() []auth.AuthHandler
- func (l *LoginphashToken) Init(cfg config.Config, log logger.Logger, vld validator.Validator, ...) error
- func (l *LoginphashToken) InitLoginToken(cfg config.Config, log logger.Logger, vld validator.Validator, ...) error
- func (l *LoginphashToken) SetAuthManager(manager auth.AuthManager)
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) 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 NewLoginphashToken ¶
func NewLoginphashToken(users auth_session.WithUserSessionManager) *LoginphashToken
func (*LoginphashToken) Handlers ¶
func (l *LoginphashToken) Handlers() []auth.AuthHandler
func (*LoginphashToken) InitLoginToken ¶
func (*LoginphashToken) SetAuthManager ¶
func (l *LoginphashToken) SetAuthManager(manager auth.AuthManager)
Click to show internal directories.
Click to hide internal directories.