-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixes up tests - removes lint errors
- Loading branch information
Showing
23 changed files
with
331 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...es/liquid-auth-api-js/src/attestation/__fixtures__/attestation.request.body.fixtures.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"username": "B7WYCZ6HRBGCH452D24TYAK7BXKNCHEXY2X7S7FWZXMHDVTDOARAOURJEU", | ||
"displayName": "Test Wallet", | ||
"authenticatorSelection": "AuthenticatorSelectionCriteria", | ||
"attestationType": "AttestationConveyancePreference", | ||
"extensions": "AttestationExtension" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 13 additions & 7 deletions
20
services/liquid-auth-api-js/src/attestation/attestation.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
import type { AttestationCredentialJSON } from "@simplewebauthn/typescript-types"; | ||
import type { AttestationCredentialJSON } from '@simplewebauthn/typescript-types'; | ||
|
||
export type AttestationSelectorDto = { | ||
username: string; | ||
displayName: string; | ||
authenticatorSelection: AuthenticatorSelectionCriteria; | ||
attestationType?: AttestationConveyancePreference; | ||
extensions?: AttestationExtension; | ||
extensions?: LiquidAttestationExtensionsClientInput; | ||
}; | ||
export type AttestationCredentialJSONDto = AttestationCredentialJSON & { | ||
clientExtensionResults: AttestationExtension; | ||
} | ||
export type AttestationExtension = AuthenticationExtensionsClientInputs & { | ||
clientExtensionResults: LiquidAuthClientExtensionResults; | ||
}; | ||
|
||
export type LiquidAuthClientExtensionResults = { | ||
liquid: { | ||
type: string; | ||
type: 'algorand'; | ||
signature: string; | ||
address: string; | ||
requestId: number; | ||
|
||
device?: string; | ||
requestId?: string; | ||
}; | ||
}; | ||
export type LiquidAttestationExtensionsClientInput = | ||
AuthenticationExtensionsClientInputs & { | ||
liquid: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.