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