Documentation ¶
Index ¶
- Variables
- type LoginIDNormalizerFactory
- type Provider
- func (p *Provider) Create(a *authenticator.OOBOTP) error
- func (p *Provider) Delete(a *authenticator.OOBOTP) error
- func (p *Provider) Get(userID string, id string) (*authenticator.OOBOTP, error)
- func (p *Provider) GetMany(ids []string) ([]*authenticator.OOBOTP, error)
- func (p *Provider) List(userID string) ([]*authenticator.OOBOTP, error)
- func (p *Provider) New(id string, userID string, oobAuthenticatorType model.AuthenticatorType, ...) (*authenticator.OOBOTP, error)
- func (p *Provider) Update(a *authenticator.OOBOTP) error
- func (p *Provider) WithSpec(a *authenticator.OOBOTP, spec *authenticator.OOBOTPSpec) (*authenticator.OOBOTP, error)
- type Store
- func (s *Store) Create(a *authenticator.OOBOTP) (err error)
- func (s *Store) Delete(id string) error
- func (s *Store) Get(userID string, id string) (*authenticator.OOBOTP, error)
- func (s *Store) GetMany(ids []string) ([]*authenticator.OOBOTP, error)
- func (s *Store) List(userID string) ([]*authenticator.OOBOTP, error)
- func (s *Store) Update(a *authenticator.OOBOTP) (err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LoginIDNormalizerFactory ¶
type LoginIDNormalizerFactory interface {
NormalizerWithLoginIDType(loginIDKeyType model.LoginIDKeyType) loginid.Normalizer
}
type Provider ¶
type Provider struct { Store *Store LoginIDNormalizerFactory LoginIDNormalizerFactory Clock clock.Clock }
func (*Provider) GetMany ¶
func (p *Provider) GetMany(ids []string) ([]*authenticator.OOBOTP, error)
func (*Provider) WithSpec ¶
func (p *Provider) WithSpec(a *authenticator.OOBOTP, spec *authenticator.OOBOTPSpec) (*authenticator.OOBOTP, error)
WithSpec return new authenticator pointer if target is changed Otherwise original authenticator will be returned
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
Click to show internal directories.
Click to hide internal directories.