Documentation
¶
Overview ¶
Package passkey provides user-verified discoverable WebAuthn credentials.
Index ¶
- Constants
- func Contract() plugin.Definition
- func PruneExpired(ctx context.Context, store storage.Store, before time.Time, limit int) (int64, error)
- type Ceremony
- type Config
- type Credential
- type Plugin
- func (p *Plugin) BeginLogin(ctx context.Context, ip netip.Addr) (Ceremony, error)
- func (p *Plugin) BeginRegistration(ctx context.Context, ip netip.Addr) (Ceremony, error)
- func (p *Plugin) Bind(a *sigil.Auth) error
- func (p *Plugin) Definition() plugin.Definition
- func (p *Plugin) FinishLogin(ctx context.Context, ip netip.Addr, id string, response []byte) (sigil.IssuedSession, error)
- func (p *Plugin) FinishRegistration(ctx context.Context, ip netip.Addr, id string, response []byte) error
- func (p *Plugin) List(ctx context.Context) ([]Credential, error)
- func (p *Plugin) Remove(ctx context.Context, ip netip.Addr, id string) error
Constants ¶
View Source
const ID = "passkey"
View Source
const Lifetime = 5 * time.Minute
View Source
const Method sigil.AuditMethod = "passkey"
View Source
const RegisterOperation plugin.Operation = "passkey.register"
View Source
const RemoveOperation plugin.Operation = "passkey.remove"
Variables ¶
This section is empty.
Functions ¶
func Contract ¶
func Contract() plugin.Definition
Types ¶
type Credential ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) BeginLogin ¶
func (*Plugin) BeginRegistration ¶
func (*Plugin) Definition ¶
func (p *Plugin) Definition() plugin.Definition
func (*Plugin) FinishLogin ¶
func (*Plugin) FinishRegistration ¶
Click to show internal directories.
Click to hide internal directories.