final class CustomServer implements Server (View source)

Web Authentication API server.

Methods

array
getCredentialCreationOptions(string $userName, string $userId, string $relyingPartyId)

No description

array
getCredentialRequestOptions(string $userName, string $userId, string $relyingPartyId, array $allowedCredentials)

No description

void
parseAndValidateAssertionResponse(string $assertionResponseJson, array $allowedCredentials, string $challenge, ServerRequestInterface $request)

No description

array
parseAndValidateAttestationResponse(string $attestationResponse, string $credentialCreationOptions, ServerRequestInterface $request)

No description

Details

array getCredentialCreationOptions(string $userName, string $userId, string $relyingPartyId)

No description

Parameters

string $userName
string $userId
string $relyingPartyId

Return Value

array

array getCredentialRequestOptions(string $userName, string $userId, string $relyingPartyId, array $allowedCredentials)

No description

Parameters

string $userName
string $userId
string $relyingPartyId
array $allowedCredentials

Return Value

array

void parseAndValidateAssertionResponse(string $assertionResponseJson, array $allowedCredentials, string $challenge, ServerRequestInterface $request)

No description

Parameters

string $assertionResponseJson
array $allowedCredentials
string $challenge
ServerRequestInterface $request

Return Value

void

array parseAndValidateAttestationResponse(string $attestationResponse, string $credentialCreationOptions, ServerRequestInterface $request)

No description

Parameters

string $attestationResponse
string $credentialCreationOptions
ServerRequestInterface $request

Return Value

array