Skip to content

Commit

Permalink
support webauthn 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
larskuhtz committed Oct 16, 2023
1 parent fea7014 commit a95e012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pact.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ library
, vector-algorithms >=0.7
, vector-space >=0.10.4
, yaml
, webauthn >= 0.7
, webauthn >= 0.8

if flag(build-tool)
cpp-options: -DBUILD_TOOL
Expand Down
2 changes: 1 addition & 1 deletion src/Pact/Types/Crypto.hs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ instance Scheme (SPPKScheme 'WebAuthn) where
let payload = authData <> clientDataDigest

-- Check the signature's validity.
first T.unpack $ WAVerify.verify publicKey payload sig
first T.unpack $ WAVerify.verify publicKey (WAVerify.Message payload) (WAVerify.Signature sig)

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, ubuntu-20.04, true, +build-tool)

• Couldn't match expected type ‘WAVerify.Message’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, ubuntu-20.04, true, +build-tool)

• Couldn't match expected type ‘WAVerify.Signature’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, ubuntu-22.04, true, +build-tool)

• Couldn't match expected type ‘WAVerify.Message’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, ubuntu-22.04, true, +build-tool)

• Couldn't match expected type ‘WAVerify.Signature’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, macOS-latest, true, +build-tool)

• Couldn't match expected type ‘WAVerify.Message’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, macOS-latest, true, +build-tool)

• Couldn't match expected type ‘WAVerify.Signature’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 9.6, 3.10, true, -build-tool)

• Couldn't match expected type ‘WAVerify.Message’

Check failure on line 218 in src/Pact/Types/Crypto.hs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 9.6, 3.10, true, -build-tool)

• Couldn't match expected type ‘WAVerify.Signature’

-- Extract the original challenge from client data.
ClientDataJSON { challenge } <- A.eitherDecode (BSL.fromStrict clientData)
Expand Down

0 comments on commit a95e012

Please sign in to comment.