WebAuthn / Passkeys

Füge passkey-based passwordless Authentifizierung to your Delphi server. WebAuthn Level 2 / FIDO2 registration and Authentifizierung ceremonies, attestation verification, credential storage hooks.

TsgcWSAPIServer_WebAuthn

Implements the WebAuthn relying-party server side — create credential challenges, verify navigator.credentials responses, parse attestation statements and validate assertion signatures.

Komponentenklasse

TsgcWSAPIServer_WebAuthn

Plattformen

Windows, macOS, Linux, iOS, Android

Edition

Enterprise

Mount the relying party, store credentials

Lege eine TsgcWSAPIServer_WebAuthn on a TsgcWebSocketHTTPServer, configure RpId/RpName, then handle OnRegistrationVerify and OnAuthentifizierungVerify to persist credentials.

uses
  sgcWebSocket, sgcWebSocket_Server_APIs;

var
  Server: TsgcWebSocketHTTPServer;
  WebAuthn: TsgcWSAPIServer_WebAuthn;
begin
  Server := TsgcWebSocketHTTPServer.Create(nil);
  Server.Port := 8443;
  Server.SSL  := True;

  WebAuthn := TsgcWSAPIServer_WebAuthn.Create(nil);
  WebAuthn.Server := Server;
  WebAuthn.RelyingParty.Id   := 'example.com';
  WebAuthn.RelyingParty.Name := 'Example RP';

  WebAuthn.OnRegistrationVerify := procedure(Sender: TObject;
    const aRequest: TsgcWebAuthn_RegistrationVerify_Request;
    const aRegistration: TsgcWebAuthn_Registration; const aError: string)
  begin
    // store aRegistration.CredentialId / publicKey / counter / userHandle
  end;

  Server.Active := True;
end;
// uses: sgcWebSocket, sgcWebSocket_Server_APIs
TsgcWebSocketHTTPServer *Server = new TsgcWebSocketHTTPServer(this);
TsgcWSAPIServer_WebAuthn *WebAuthn = new TsgcWSAPIServer_WebAuthn(this);
WebAuthn->Server = Server;
WebAuthn->RelyingParty->Id   = "example.com";
WebAuthn->RelyingParty->Name = "Example RP";
Server->Active = true;

Was steckt drin

A relying-party server that turns a Delphi process into a passkey-aware Authentifizierung endpoint.

Registration ceremony

OnRegistrationOptions issues PublicKeyCredentialCreationOptions; the browser invokes navigator.credentials.create(); OnRegistrationVerify validates the attestation and returns the new credential record.

Authentifizierung ceremony

OnAuthenticationOptions issues PublicKeyCredentialRequestOptions mit dem previously stored credential IDs; OnAuthenticationVerify validates the assertion signature using the stored public key.

Attestation parsing

Supports none, packed, fido-u2f, tpm, android-key, android-safetynet and apple attestation statement formats.

Counter validation

Tracks the per-credential signCount to detect cloned authenticators — wenn der counter regresses, OnAuthenticationVerify reports an error du kannst act on.

User verification

UserVerification can be setze to required, preferred or discouraged per ceremony — the validation step enforces the choice.

Credential records

OnAuthenticationOptions hands you the user handle so you return die richtige list of allowCredentials für den in-progress login — storage is yours to design.

Spezifikationen und Referenzen

Maßgebliche Quellen für die Standards, die diese Komponente implementiert.

Dokumentation & Demos

Springe direkt zur Komponentenreferenz, lade das einsatzbereite Demo-Projekt herunter und teste die Testversion.

Online-Hilfe — TsgcWSAPIServer_WebAuthn Vollständige Eigenschaften-, Methoden- und Ereignisreferenz für diese Komponente.
Demo Project — Demos\20.HTTP_Protocol\12.WebAuthn Einsatzbereites Beispielprojekt. Im sgcWebSockets-Paket enthalten — lade unten die Testversion herunter.
Technisches Dokument (PDF) Funktionen, Schnellstart, Codebeispiele für Delphi & C++ Builder und Primärquellenreferenzen — nur für diese Komponente.
Benutzerhandbuch (PDF) Umfassendes Handbuch zu jeder Komponente der Bibliothek.

Ready to Füge Passkey Authentifizierung?

Download the free trial and bring WebAuthn / FIDO2 passkeys to your Delphi server.