interface 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

Exceptions

WebAuthnException

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

No description

Parameters

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

Return Value

array

Exceptions

WebAuthnException

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

No description

Parameters

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

Return Value

void

Exceptions

WebAuthnException

See also

https://www.w3.org/TR/webauthn-3/#sctn-verifying-assertion

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

No description

Parameters

string $attestationResponse
string $credentialCreationOptions
ServerRequestInterface $request

Return Value

array

Exceptions

WebAuthnException

See also

https://www.w3.org/TR/webauthn-3/#sctn-registering-a-new-credential