Skip to content

Commit

Permalink
Merge pull request #6 from goedemiddag/attestation-rewrite
Browse files Browse the repository at this point in the history
More deprecations fixed
  • Loading branch information
silvano-a authored Nov 2, 2023
2 parents 2cad58b + ab35e12 commit fbc844f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Eloquent/ManagesCredentialRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace DarkGhostHunter\Larapass\Eloquent;

use Base64Url\Base64Url;
use Symfony\Component\Uid\Uuid;
use Webauthn\PublicKeyCredentialDescriptor as CredentialDescriptor;
use Webauthn\PublicKeyCredentialSource as CredentialSource;
use Webauthn\PublicKeyCredentialUserEntity as UserEntity;
Expand Down Expand Up @@ -92,7 +93,7 @@ public function toCredentialSource(): CredentialSource
$this->transports->all(),
$this->attestation_type,
$this->trust_path,
$this->aaguid,
Uuid::fromString($this->aaguid->toString()),
$this->public_key,
$this->user_handle,
$this->counter
Expand Down
2 changes: 1 addition & 1 deletion src/LarapassServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static function ($app) {
null,
$app[ExtensionOutputCheckerHandler::class],
$app[CoseAlgorithmManager::class],
$app[CounterChecker::class],
null,
);
}
);
Expand Down
4 changes: 2 additions & 2 deletions src/WebAuthn/WebAuthnAssertValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ protected function makeAssertionRequest($user = null): RequestOptions
{
return new RequestOptions(
random_bytes($this->bytes),
$this->timeout,
$this->relyingParty->getId(),
$this->relyingParty->id,
$user ? $user->allCredentialDescriptors() : [],
$this->verifyLogin,
$this->timeout,
$this->extensions
);
}
Expand Down

0 comments on commit fbc844f

Please sign in to comment.