TsgcWSAPIServer_WebAuthn › Propriedades › Server
Componente de servidor HTTP ao qual a WebAuthn API está anexada (TsgcWebSocketHTTPServer ou TsgcWebSocketServer_HTTPAPI).
property Server: TsgcWSComponent_Server read FServer write SetServer;
nil
Referencia o componente de servidor HTTP/WebSocket que hospeda os endpoints WebAuthn. Atribua um TsgcWebSocketHTTPServer ou TsgcWebSocketServer_HTTPAPI para publicar as URLs definidas em EndpointsOptions. O WebAuthn requer um contexto seguro, então o servidor deve ser configurado com SSL/TLS (OpenSSL 3.0.0+) e acessível via HTTPS no hostname declarado em WebAuthnOptions.RelyingParty. A propriedade é obrigatória, se for nil, nenhum endpoint WebAuthn é servido.
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;