Documentation ¶
Index ¶
- Variables
- type PasskeyService
- type Provider
- func (p *Provider) Authenticate(ctx context.Context, a *authenticator.Passkey, assertionResponse []byte) (requireUpdate bool, err error)
- func (p *Provider) Create(ctx context.Context, a *authenticator.Passkey) error
- func (p *Provider) Delete(ctx context.Context, a *authenticator.Passkey) error
- func (p *Provider) Get(ctx context.Context, userID string, id string) (*authenticator.Passkey, error)
- func (p *Provider) GetMany(ctx context.Context, ids []string) ([]*authenticator.Passkey, error)
- func (p *Provider) List(ctx context.Context, userID string) ([]*authenticator.Passkey, error)
- func (p *Provider) New(ctx context.Context, id string, userID string, attestationResponse []byte, ...) (*authenticator.Passkey, error)
- func (p *Provider) Update(ctx context.Context, a *authenticator.Passkey) error
- type Store
- func (s *Store) Create(ctx context.Context, a *authenticator.Passkey) (err error)
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, userID string, id string) (*authenticator.Passkey, error)
- func (s *Store) GetMany(ctx context.Context, ids []string) ([]*authenticator.Passkey, error)
- func (s *Store) List(ctx context.Context, userID string) ([]*authenticator.Passkey, error)
- func (s *Store) UpdateSignCount(ctx context.Context, a *authenticator.Passkey) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PasskeyService ¶
type PasskeyService interface { PeekAttestationResponse(ctx context.Context, attestationResponse []byte) (creationOptions *model.WebAuthnCreationOptions, credentialID string, signCount int64, err error) PeekAssertionResponse(ctx context.Context, 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 ¶
Click to show internal directories.
Click to hide internal directories.