TsgcWSAPIServer_WebAuthnMéthodes › ValidateRegistrationOptions

ValidateRegistrationOptions Méthode

Analyse la charge utile d'attestation client et valide un nouvel enregistrement d'information d'identification conformément à la spécification WebAuthn.

Syntaxe

procedure ValidateRegistrationOptions(const aPayload: string);

Paramètres

NomTypeDescription
aPayload const stringCharge utile JSON retournée par l'appel navigator.credentials.create() du client contenant l'attestationObject et le clientDataJSON.

Remarques

Décode le attestationObject CBOR, vérifie l'instruction d'attestation selon les formats activés (packed, tpm, android-key, android-safetynet, fido-u2f, apple, none), extrait l'identifiant d'informations d'identification et la clé publique et les stocke dans le référentiel d'informations d'identification. Déclenche OnWebAuthnRegistrationValidateCertificate, OnWebAuthnRegistrationValidateCredentialId, OnWebAuthnRegistrationSuccessful et OnWebAuthnRegistrationError selon le cas. Appelez cette méthode manuellement uniquement lorsque vous pilotez l'enregistrement en dehors du point de terminaison HTTP intégré.

Exemple

sgcWSAPIServer_WebAuthn1.ValidateRegistrationOptions(vClientJSON);

Retour aux méthodes