generated from Firehed/php-library-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add intermediate data structure for attested credential data (#52)
Rather than having the `AuthenticatorData` _build_ the Credential during registration, it's now being adjusted to instead return the underlying [components](https://www.w3.org/TR/webauthn-3/#sctn-attestation) that it will need. While this is a minor structural formality right now, it will ease the adoption of the updated credential storage recommendations described in the Level 3 version of the spec that are not captured in the current L2-based implementation.
- Loading branch information
Showing
6 changed files
with
42 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Firehed\WebAuthn; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
class AttestedCredentialData | ||
{ | ||
public function __construct( | ||
public readonly BinaryString $aaguid, | ||
public readonly BinaryString $credentialId, | ||
public readonly COSEKey $coseKey, | ||
) { | ||
} | ||
} |
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