Skip to content

Commit

Permalink
Update AuthenticationController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum committed Feb 17, 2023
1 parent 6da7635 commit 1c1a88a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/AuthenticationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@ public function verify(Request $request, ServerRequestInterface $serverRequest)
AttestationObjectLoader::create($attestationManager)
);

\Log::info($request->all());

$publicKeyCredential = $pkCredentialLoader->load(json_encode($request->all()));

$authenticatorAssertionResponse = $publicKeyCredential->getResponse();

\Log::info($authenticatorAssertionResponse->getClientDataJSON()->all());

if (!$authenticatorAssertionResponse instanceof AuthenticatorAssertionResponse) {
throw ValidationException::withMessages([
'username' => 'Invalid response type',
Expand Down

0 comments on commit 1c1a88a

Please sign in to comment.