webauthn-0.1.0.0: Relying party (server) implementation of the WebAuthn 2 specification
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Crypto.WebAuthn.Model

Description

A set of types representing credential options (CredentialOptions) and their resulting credentials responses (Credential).

Also includes a set of functions for indirectly encoding credential options to JSON (encodeCredentialOptionsRegistration, encodeCredentialOptionsAuthentication) and indirectly decoding credential responses from JSON (decodeCredentialRegistration, decodeCredentialAuthentication), using the same encoding as webauthn-json which can be used on the JavaScript side.

The types in this module form one way the library represents the WebAuthn types, another are the internal WebIDL modules, which is a lower-level, more one-to-one mapping. As a user of the library, you will most likely use the representation in this module over the one in the WebIDL modules.

This module is reexported by the Crypto.WebAuthn module, which is the preferred way of using it.

Documentation