TsgcWSAPIServer_WebAuthn › Propiedades › Server
Componente de servidor HTTP al que está vinculada la API WebAuthn (TsgcWebSocketHTTPServer o TsgcWebSocketServer_HTTPAPI).
property Server: TsgcWSComponent_Server read FServer write SetServer;
nil
Referencia el componente de servidor HTTP/WebSocket que aloja los endpoints de WebAuthn. Asigne un TsgcWebSocketHTTPServer o un TsgcWebSocketServer_HTTPAPI para publicar las URLs definidas en EndpointsOptions. WebAuthn requiere un contexto seguro, por lo que el servidor debe configurarse con SSL/TLS (OpenSSL 3.0.0+) y ser accesible por HTTPS en el nombre de host declarado en WebAuthnOptions.RelyingParty. La propiedad es obligatoria — si es nil no se sirve ningún endpoint WebAuthn.
oHTTPServer := TsgcWebSocketHTTPServer.Create(nil);
oHTTPServer.Port := 443;
oHTTPServer.SSL := True;
oWebAuthn := TsgcWSAPIServer_WebAuthn.Create(nil);
oWebAuthn.Server := oHTTPServer;
oWebAuthn.WebAuthnOptions.RelyingParty := 'www.test.com';
oHTTPServer.Active := True;