Skip to content

Commit

Permalink
Update RegistrationController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum committed Feb 17, 2023
1 parent 5a568ed commit 3bc0e71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/RegistrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Webauthn\AttestationStatement\AttestationObjectLoader;
use Webauthn\AttestationStatement\AttestationStatementSupportManager;
use Webauthn\AttestationStatement\NoneAttestationStatementSupport;
use Webauthn\AuthenticationExtensions\AuthenticationExtensionsClientInputs;
use Webauthn\AuthenticationExtensions\ExtensionOutputCheckerHandler;
use Webauthn\AuthenticatorAttestationResponse;
use Webauthn\AuthenticatorAttestationResponseValidator;
Expand Down Expand Up @@ -87,6 +88,9 @@ public function generateOptions(Request $request)
PublicKeyCredentialCreationOptions::ATTESTATION_CONVEYANCE_PREFERENCE_NONE
)
->setAuthenticatorSelection(AuthenticatorSelectionCriteria::create())
->setExtensions(AuthenticationExtensionsClientInputs::createFromArray([
'credProps' => true,
]))
->excludeCredentials(
...$user->authenticators->map(
fn ($authenticator) => PublicKeyCredentialDescriptor::create(
Expand Down

0 comments on commit 3bc0e71

Please sign in to comment.