TsgcWSAPIServer_WebAuthn › Méthodes › ValidateRegistrationOptions
Analyse la charge utile d'attestation client et valide un nouvel enregistrement d'information d'identification conformément à la spécification WebAuthn.
procedure ValidateRegistrationOptions(const aPayload: string);
| Nom | Type | Description |
|---|---|---|
aPayload
| const string | Charge utile JSON retournée par l'appel navigator.credentials.create() du client contenant l'attestationObject et le clientDataJSON. |
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é.
sgcWSAPIServer_WebAuthn1.ValidateRegistrationOptions(vClientJSON);