TsgcWSAPIServer_WebAuthnEigenschaften › EndpointsOptions

EndpointsOptions Eigenschaft

URL-Routen, die von der Komponente für WebAuthn-Registrierung, -Authentifizierung, die mitgelieferte JavaScript-Bibliothek und die Testseite bereitgestellt werden.

Syntax

property EndpointsOptions: TsgcWSWebAuthnEndpoints_Options read FEndpointsOptions write SetEndpointsOptions;

Standardwert

RegistrationOptions: /sgcWebAuthn/Registration/Options; RegistrationVerify: /sgcWebAuthn/Registration/Verify; AuthenticationOptions: /sgcWebAuthn/Authentication/Options; AuthenticationVerify: /sgcWebAuthn/Authentication/Verify; WebAuthn (JS-Bibliothek): aktiviert; Test: deaktiviert.

Hinweise

Konfiguriert die von der Komponente bereitgestellten HTTP-Endpunkte zur Behandlung von WebAuthn-Verkehr aus der Browser-JavaScript-Schicht. Jeder Eintrag hat ein Enabled-Flag und einen Endpoint-URL-Pfad, der angepasst werden kann. RegistrationOptions gibt eine Challenge und Relying-Party-Daten zurück, damit der Authenticator eine neue Anmeldeinformation erstellen kann; RegistrationVerify empfängt die Attestierung und speichert den öffentlichen Schlüssel. AuthenticationOptions gibt eine Challenge für die Anmeldung zurück; AuthenticationVerify validiert die Assertion mit dem gespeicherten öffentlichen Schlüssel. WebAuthn liefert den mitgelieferten JavaScript-Helfer aus; deaktivieren Sie es, um Ihre eigene WebAuthn-Client-Bibliothek auszuliefern. Test liefert eine HTML-Testseite aus und sollte in der Produktion deaktiviert bleiben.

Beispiel

oWebAuthn.EndpointsOptions.RegistrationOptions.Endpoint := '/api/webauthn/register/options';
oWebAuthn.EndpointsOptions.RegistrationVerify.Endpoint := '/api/webauthn/register/verify';
oWebAuthn.EndpointsOptions.AuthenticationOptions.Endpoint := '/api/webauthn/login/options';
oWebAuthn.EndpointsOptions.AuthenticationVerify.Endpoint := '/api/webauthn/login/verify';
oWebAuthn.EndpointsOptions.WebAuthn.Enabled := True;
oWebAuthn.EndpointsOptions.Test.Enabled := False;

Zurück zu Properties