final class WebauthnLibServer implements Server (View source)

Methods

__construct(TwoFactor $twoFactor)

No description

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

PublicKeyCredentialSource|null
findOneByCredentialId(string $publicKeyCredentialId)

No description

array
findAllForUserEntity(PublicKeyCredentialUserEntity $publicKeyCredentialUserEntity)

No description

void
saveCredentialSource(PublicKeyCredentialSource $publicKeyCredentialSource)

No description

Details

__construct(TwoFactor $twoFactor)

No description

Parameters

TwoFactor $twoFactor

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

PublicKeyCredentialSource|null findOneByCredentialId(string $publicKeyCredentialId)

No description

Parameters

string $publicKeyCredentialId

Return Value

PublicKeyCredentialSource|null

array findAllForUserEntity(PublicKeyCredentialUserEntity $publicKeyCredentialUserEntity)

No description

Parameters

PublicKeyCredentialUserEntity $publicKeyCredentialUserEntity

Return Value

array

void saveCredentialSource(PublicKeyCredentialSource $publicKeyCredentialSource)

No description

Parameters

PublicKeyCredentialSource $publicKeyCredentialSource

Return Value

void