Documentation ¶
Index ¶
- Variables
- type PasskeyService
- type Provider
- func (p *Provider) Create(i *identity.Passkey) error
- func (p *Provider) Delete(i *identity.Passkey) error
- func (p *Provider) Get(userID, id string) (*identity.Passkey, error)
- func (p *Provider) GetByAssertionResponse(assertionResponse []byte) (*identity.Passkey, error)
- func (p *Provider) GetMany(ids []string) ([]*identity.Passkey, error)
- func (p *Provider) List(userID string) ([]*identity.Passkey, error)
- func (p *Provider) New(userID string, attestationResponse []byte) (*identity.Passkey, error)
- type Store
- func (s *Store) Create(i *identity.Passkey) error
- func (s *Store) Delete(i *identity.Passkey) error
- func (s *Store) Get(userID, id string) (*identity.Passkey, error)
- func (s *Store) GetByCredentialID(credentialID string) (*identity.Passkey, error)
- func (s *Store) GetMany(ids []string) ([]*identity.Passkey, error)
- func (s *Store) List(userID string) ([]*identity.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) GetCredentialIDFromAssertionResponse(assertionResponse []byte) (credentialID string, err error) }
nolint: golint
type Provider ¶
type Provider struct { Store *Store Clock clock.Clock Passkey PasskeyService }
func (*Provider) GetByAssertionResponse ¶
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
func (*Store) GetByCredentialID ¶
Click to show internal directories.
Click to hide internal directories.