Documentation ¶
Index ¶
- Variables
- type LoginIDNormalizerFactory
- type Provider
- func (p *Provider) Create(ctx context.Context, a *authenticator.OOBOTP) error
- func (p *Provider) Delete(ctx context.Context, a *authenticator.OOBOTP) error
- func (p *Provider) Get(ctx context.Context, userID string, id string) (*authenticator.OOBOTP, error)
- func (p *Provider) GetMany(ctx context.Context, ids []string) ([]*authenticator.OOBOTP, error)
- func (p *Provider) List(ctx context.Context, userID string) ([]*authenticator.OOBOTP, error)
- func (p *Provider) New(id string, userID string, oobAuthenticatorType model.AuthenticatorType, ...) (*authenticator.OOBOTP, error)
- func (p *Provider) Update(ctx context.Context, a *authenticator.OOBOTP) error
- func (p *Provider) UpdateTarget(a *authenticator.OOBOTP, option UpdateTargetOption) (*authenticator.OOBOTP, bool)
- type Store
- func (s *Store) Create(ctx context.Context, a *authenticator.OOBOTP) (err error)
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, userID string, id string) (*authenticator.OOBOTP, error)
- func (s *Store) GetMany(ctx context.Context, ids []string) ([]*authenticator.OOBOTP, error)
- func (s *Store) List(ctx context.Context, userID string) ([]*authenticator.OOBOTP, error)
- func (s *Store) Update(ctx context.Context, a *authenticator.OOBOTP) (err error)
- type UpdateTargetOption
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LoginIDNormalizerFactory ¶
type LoginIDNormalizerFactory interface {
NormalizerWithLoginIDType(loginIDKeyType model.LoginIDKeyType) internalinterface.LoginIDNormalizer
}
type Provider ¶
type Provider struct { Store *Store LoginIDNormalizerFactory LoginIDNormalizerFactory Clock clock.Clock }
func (*Provider) UpdateTarget ¶
func (p *Provider) UpdateTarget(a *authenticator.OOBOTP, option UpdateTargetOption) (*authenticator.OOBOTP, bool)
UpdateTarget 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 }
type UpdateTargetOption ¶
type UpdateTargetOption struct {
NewTarget string
}
Click to show internal directories.
Click to hide internal directories.