TsgcWSAPIServer_WebAuthnPropriedades › Server

Server Property

Componente de servidor HTTP ao qual a WebAuthn API está anexada (TsgcWebSocketHTTPServer ou TsgcWebSocketServer_HTTPAPI).

Sintaxe

property Server: TsgcWSComponent_Server read FServer write SetServer;

Valor Padrão

nil

Observações

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.

Exemplo

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;

Voltar para Propriedades