Dealing with “localhost”
aka non-https relying parties
Secured Context
The Easy Way
$server->setSecuredRelyingPartyId(['localhost']);The Hard Way
$publicKeyCredentialSource = $authenticatorAttestationResponseValidator->check(
$authenticatorAttestationResponse,
$publicKeyCredentialCreationOptions,
$serverRequest,
['localhost']
);$publicKeyCredentialSource = $authenticatorAssertionResponse->check(
$publicKeyCredential->getRawId(),
$authenticatorAssertionResponse,
$publicKeyCredentialRequestOptions,
$request,
$userHandle,
['localhost']
);The Symfony Way
Last updated
Was this helpful?