TsgcWSAPIServer_WebAuthn › Events › OnWebAuthnRegistrationSuccessful
Fires at the end of /register/verify when attestation has been accepted; this is where the application must persist the new credential record for the user.
public event TsgcWebAuthnOnRegistrationSuccessfulHandler OnWebAuthnRegistrationSuccessful;
// delegate void TsgcWebAuthnOnRegistrationSuccessfulHandler(TObject Sender, TsgcWebAuthn_Registration aRegistration, TsgcWebAuthn_CredentialRecord aCredentialRecord, out bool Accept)
—
Final hook of a successful registration ceremony. aRegistration holds the original user information and the verified attestation; aCredentialRecord contains the server-side credential (credential id, public key, sign count, transports, backup flags, AAGUID) that must be stored keyed by user. Set Accept to false to abort the ceremony at the last moment — for example when your store rejected the insert — which causes the server to return an error to the client instead of a success response.