Versions in this module Expand all Collapse all v0 v0.0.1 Nov 26, 2022 Changes in this version + const DefaultEncryptionKeyLength + const WebauthnSession + var ErrInsufficientBytesRead = errors.New("insufficient bytes read") + var ErrMarshal = errors.New("error unmarshaling data") + func GenerateSecureKey(n int) ([]byte, error) + func NotFound(c *fiber.Ctx) error + func ParseCredentialCreationResponse(ccr protocol.CredentialCreationResponse) (*protocol.ParsedCredentialCreationData, error) + func ParseCredentialRequestResponse(car protocol.CredentialAssertionResponse) (*protocol.ParsedCredentialAssertionData, error) + type LoginResponse struct + Response protocol.CredentialAssertionResponse + Session string + type RegistrationResponse struct + Response protocol.CredentialCreationResponse + Session string + type SessionStore struct + func NewSessionStore(keyPairs ...[]byte) (*SessionStore, error) + func (store *SessionStore) GetWebauthnSession(key string, r *http.Request) (webauthn.SessionData, error) + func (store *SessionStore) SaveWebauthnSession(key string, data *webauthn.SessionData, r *http.Request, w http.ResponseWriter) ([]byte, error) + func (store *SessionStore) Set(key string, value interface{}, r *http.Request, w http.ResponseWriter) error + type WebAuthnHandler struct + Operations *operations.Manager + SessionStore *session.Store + WebAuthn *webauthn.WebAuthn + func NewWebAuthnHandler(f *fiber.App, o *operations.Manager, cfg *gyaml.GYAML) *WebAuthnHandler + func (s *WebAuthnHandler) AddRoutes(f *fiber.App) + func (s *WebAuthnHandler) BeginLogin(c *fiber.Ctx) error + func (s *WebAuthnHandler) BeginRegistration(c *fiber.Ctx) error + func (s *WebAuthnHandler) FinishLogin(c *fiber.Ctx) error + func (s *WebAuthnHandler) FinishRegistration(c *fiber.Ctx) error + func (s *WebAuthnHandler) ListCredentials(c *fiber.Ctx) error + func (s *WebAuthnHandler) Logoff(c *fiber.Ctx) error