webauthn-client-0.1.0.0: webauthn-client.cabal
cabal-version: 3.0
name: webauthn-client
version: 0.1.0.0
synopsis: Software WebAuthn authenticator and JSON/HTTP client
description:
A software WebAuthn authenticator: the client half of a passkey ceremony.
WebAuthn relying parties verify an ES256 signature over
authData || SHA-256(clientDataJSON) by an enrolled public key, so a headless
program can perform the same ceremony with a keypair it holds. Use this to
sign in to passkey-gated APIs from a CLI or a service.
.
The library builds registration and assertion responses for the standard
WebAuthn JSON shapes, persists credentials owner-only, and can drive an RP's
JSON/HTTP endpoints, with a shipped adapter as an example.
license: BSD-3-Clause
license-file: LICENSE
author: Doug Beardsley
maintainer: doug@equitek.ai
category: Web
build-type: Simple
extra-doc-files:
README.md
CHANGELOG.md
tested-with: GHC == 9.12.4
source-repository head
type: git
location: https://github.com/mightybyte/webauthn-client.git
common warnings
default-language: GHC2021
default-extensions:
DerivingStrategies
OverloadedStrings
ScopedTypeVariables
ghc-options:
-Wall -Wcompat -Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wname-shadowing
-Wpartial-fields
-Wredundant-constraints
library
import: warnings
hs-source-dirs: src
exposed-modules:
WebAuthn.Client
WebAuthn.Client.Http
build-depends:
base >= 4.18 && < 5
, aeson >= 2.0 && < 2.4
, base64-bytestring >= 1.2 && < 1.3
, bytestring >= 0.11 && < 0.13
, crypton >= 1.0 && < 1.2
, directory >= 1.3 && < 1.4
, filepath >= 1.4 && < 1.6
, http-client >= 0.7 && < 0.8
, http-client-tls >= 0.3 && < 0.5
, http-types >= 0.12 && < 0.13
, text >= 2.0 && < 2.2
, unix >= 2.7 && < 2.9
test-suite webauthn-client-test
import: warnings
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
other-modules:
WebAuthn.ClientSpec
build-depends:
base >= 4.18 && < 5
, webauthn-client >= 0.1 && < 0.2
, aeson >= 2.0 && < 2.4
, bytestring >= 0.11 && < 0.13
, crypton >= 1.0 && < 1.2
, filepath >= 1.4 && < 1.6
, hspec >= 2.10 && < 2.12
, temporary >= 1.3 && < 1.4
, text >= 2.0 && < 2.2