Documentation ¶
Index ¶
- Variables
- type PasskeyService
- type Provider
- func (p *Provider) Authenticate(a *authenticator.Passkey, assertionResponse []byte) (requireUpdate bool, err error)
- func (p *Provider) Create(a *authenticator.Passkey) error
- func (p *Provider) Delete(a *authenticator.Passkey) error
- func (p *Provider) Get(userID string, id string) (*authenticator.Passkey, error)
- func (p *Provider) GetMany(ids []string) ([]*authenticator.Passkey, error)
- func (p *Provider) List(userID string) ([]*authenticator.Passkey, error)
- func (p *Provider) New(id string, userID string, attestationResponse []byte, isDefault bool, ...) (*authenticator.Passkey, error)
- func (p *Provider) Update(a *authenticator.Passkey) error
- type Store
- func (s *Store) Create(a *authenticator.Passkey) (err error)
- func (s *Store) Delete(id string) error
- func (s *Store) Get(userID string, id string) (*authenticator.Passkey, error)
- func (s *Store) GetMany(ids []string) ([]*authenticator.Passkey, error)
- func (s *Store) List(userID string) ([]*authenticator.Passkey, error)
- func (s *Store) UpdateSignCount(a *authenticator.Passkey) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PasskeyService ¶
type PasskeyService interface { PeekAttestationResponse(attestationResponse []byte) (creationOptions *model.WebAuthnCreationOptions, credentialID string, signCount int64, err error) PeekAssertionResponse(assertionResponse []byte, attestationResponse []byte) (signCount int64, err error) }
nolint: golint
type Provider ¶
type Provider struct { Store *Store Clock clock.Clock Passkey PasskeyService }
func (*Provider) Authenticate ¶
func (*Provider) GetMany ¶
func (p *Provider) GetMany(ids []string) ([]*authenticator.Passkey, error)
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
func (*Store) UpdateSignCount ¶
func (s *Store) UpdateSignCount(a *authenticator.Passkey) error
Click to show internal directories.
Click to hide internal directories.