Skip to content

Commit

Permalink
Doctrine DBAL 4.0 and ORM 3.0 for tests (#553)
Browse files Browse the repository at this point in the history
Doctrine DBAL 4.0 and ORM 3.0 for tests
  • Loading branch information
Spomky authored Feb 23, 2024
1 parent 283b936 commit dee648c
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/CeremonyStep/CheckOrigin.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,36 +76,3 @@ private function getFacetId(
return $appId;
}
}

/*
$rpId = $publicKeyCredentialCreationOptions->rp
->id ?? (is_string($request) ? $request : $request->getUri()->getHost());
$facetId = $this->getFacetId(
$rpId,
$publicKeyCredentialCreationOptions->extensions,
$authenticatorAttestationResponse->attestationObject
->authData
->extensions
);
$parsedRelyingPartyId = parse_url($C->origin);
is_array($parsedRelyingPartyId) || throw AuthenticatorResponseVerificationException::create(
sprintf('The origin URI "%s" is not valid', $C->origin)
);
array_key_exists(
'scheme',
$parsedRelyingPartyId
) || throw AuthenticatorResponseVerificationException::create('Invalid origin rpId.');
$clientDataRpId = $parsedRelyingPartyId['host'] ?? '';
$clientDataRpId !== '' || throw AuthenticatorResponseVerificationException::create('Invalid origin rpId.');
$rpIdLength = mb_strlen($facetId);
mb_substr(
'.' . $clientDataRpId,
-($rpIdLength + 1)
) === '.' . $facetId || throw AuthenticatorResponseVerificationException::create('rpId mismatch.');
if (! in_array($facetId, $securedRelyingPartyId, true)) {
$scheme = $parsedRelyingPartyId['scheme'];
$scheme === 'https' || throw AuthenticatorResponseVerificationException::create(
'Invalid scheme. HTTPS required.'
);
}
*/

0 comments on commit dee648c

Please sign in to comment.