Skip to content

WebauthnServer ​

Type
Class
Namespace
craft\auth\passkeys
Inherits
craft\auth\passkeys\WebauthnServer
Since
5.0.0

Webauthn server.

View source

Public Methods ​

MethodDescription
__construct()
getAlgorithmManager()Returns a list of cryptographic algorithms to perform data verification based on cryptographic signatures.
getAttestationObjectLoader()Returns the object that will load the Attestation statements received from the devices.
getAttestationStatementManager()Returns supported attestation statement types.
getAuthenticatorAssertionResponseValidator()Returns the object that will be used to validate the Assertion Responses.
getAuthenticatorAttestationResponseValidator()Returns the object that will be used to validate the Attestation Responses.
getCredentialRepository()Returns the credential repository.
getExtensionOutputCheckerHandler()Returns the object that deals with extensions.
getPasskeyAuthenticatorSelectionCriteria()Returns the object containing Authenticator Selection Criteria
getPublicKeyCredentialParametersList()COSE algorithms that the authenticators must use in the order of interest.
getSerializer()Return the Symphony Serializer that will deal with serialization/deserialization of data.

__construct() ​

View source

getAlgorithmManager() ​

Returns a list of cryptographic algorithms to perform data verification based on cryptographic signatures.

See also https://webauthn-doc.spomky-labs.com/pure-php/the-hard-way#algorithm-managerView source

Returns ​

\Cose\Algorithm\Manager

getAttestationObjectLoader() ​

DEPRECATED

Deprecated in 5.9.16

Returns the object that will load the Attestation statements received from the devices.

See also https://webauthn-doc.spomky-labs.com/pure-php/the-hard-way#attestation-object-loaderView source

Returns ​

\Webauthn\AttestationStatement\AttestationObjectLoader

getAttestationStatementManager() ​

Returns supported attestation statement types.

Note that you should only use the none one unless you have specific needs.

See also https://webauthn-doc.spomky-labs.com/pure-php/the-hard-way#supported-attestation-statement-typesView source

Returns ​

\Webauthn\AttestationStatement\AttestationStatementSupportManager

getAuthenticatorAssertionResponseValidator() ​

Returns the object that will be used to validate the Assertion Responses.

See also https://webauthn-doc.spomky-labs.com/pure-php/the-hard-way#authenticator-assertion-response-validatorView source

Returns ​

\Webauthn\AuthenticatorAssertionResponseValidator

getAuthenticatorAttestationResponseValidator() ​

Returns the object that will be used to validate the Attestation Responses.

See also https://webauthn-doc.spomky-labs.com/pure-php/the-hard-way#authenticator-attestation-response-validatorView source

Returns ​

\Webauthn\AuthenticatorAttestationResponseValidator

getCredentialRepository() ​

Returns the credential repository.

View source

Returns ​

craft\auth\passkeys\CredentialRepository

getExtensionOutputCheckerHandler() ​

Returns the object that deals with extensions.

See also https://webauthn-doc.spomky-labs.com/pure-php/the-hard-way#extension-output-checker-handlerView source

Returns ​

\Webauthn\AuthenticationExtensions\ExtensionOutputCheckerHandler

getPasskeyAuthenticatorSelectionCriteria() ​

Returns the object containing Authenticator Selection Criteria

View source

Returns ​

\Webauthn\AuthenticatorSelectionCriteria

getPublicKeyCredentialParametersList() ​

COSE algorithms that the authenticators must use in the order of interest.

View source

Returns ​

array

getSerializer() ​

Return the Symphony Serializer that will deal with serialization/deserialization of data.

See also https://webauthn-doc.spomky-labs.com/v/v4.8/pure-php/input-loading#the-serializerView source

Returns ​

\Symfony\Component\Serializer\SerializerInterface