From 1c1a88a4b1265339dc35bc19b2eb2596985d5bba Mon Sep 17 00:00:00 2001 From: Joe Tannenbaum Date: Fri, 17 Feb 2023 11:18:16 -0500 Subject: [PATCH] Update AuthenticationController.php --- app/Http/Controllers/AuthenticationController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/AuthenticationController.php b/app/Http/Controllers/AuthenticationController.php index 9c92ab2..73b30ee 100644 --- a/app/Http/Controllers/AuthenticationController.php +++ b/app/Http/Controllers/AuthenticationController.php @@ -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',