Skip to content

Commit 94fba13

Browse files
authored
feat: remove diactoros (#4)
1 parent 0e3b368 commit 94fba13

File tree

3 files changed

+5
-124
lines changed

3 files changed

+5
-124
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"web-auth/cose-lib": "^1.1",
3030
"web-auth/u2f-lib": "^1.0",
3131
"web-auth/webauthn-lib": "^1.1",
32-
"web-token/jwt-signature": "^1.3",
33-
"zendframework/zend-diactoros": "^2.1"
32+
"web-token/jwt-signature": "^1.3"
3433
},
3534
"require-dev": {
3635
"nunomaduro/larastan": "^0.3.15",

composer.lock

Lines changed: 1 addition & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Services/Webauthn/PublicKeyCredentialValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace LaravelWebauthn\Services\Webauthn;
44

55
use CBOR\Decoder;
6+
use GuzzleHttp\Psr7\ServerRequest;
67
use Webauthn\PublicKeyCredentialSource;
7-
use Zend\Diactoros\ServerRequestFactory;
88
use Webauthn\AuthenticatorAssertionResponse;
99
use Webauthn\AuthenticatorAttestationResponse;
1010
use Webauthn\PublicKeyCredentialRequestOptions;
@@ -54,7 +54,7 @@ public function validate(PublicKeyCredentialCreationOptions $publicKeyCredential
5454
$authenticatorAttestationResponseValidator->check(
5555
$response,
5656
$publicKeyCredentialCreationOptions,
57-
ServerRequestFactory::fromGlobals()
57+
ServerRequest::fromGlobals()
5858
);
5959

6060
// Everything is OK here. You can get the PublicKeyCredentialDescriptor.
@@ -101,7 +101,7 @@ public function check(User $user, PublicKeyCredentialRequestOptions $publicKeyCr
101101
$publicKeyCredential->getRawId(),
102102
$response,
103103
$publicKeyCredentialRequestOptions,
104-
ServerRequestFactory::fromGlobals(),
104+
ServerRequest::fromGlobals(),
105105
$user->getAuthIdentifier()
106106
);
107107

0 commit comments

Comments
 (0)