TsgcWSAPIServer_WebAuthnProprietà › Server

Server Proprietà

Componente server HTTP a cui è collegata l'API WebAuthn (TsgcWebSocketHTTPServer o TsgcWebSocketServer_HTTPAPI).

Sintassi

property Server: TsgcWSComponent_Server read FServer write SetServer;

Valore predefinito

nil

Note

Fa riferimento al componente server HTTP/WebSocket che ospita gli endpoint WebAuthn. Assegnare un TsgcWebSocketHTTPServer o un TsgcWebSocketServer_HTTPAPI per pubblicare gli URL definiti in EndpointsOptions. WebAuthn richiede un contesto sicuro, quindi il server deve essere configurato con SSL/TLS (OpenSSL 3.0.0+) e raggiungibile tramite HTTPS all'hostname dichiarato in WebAuthnOptions.RelyingParty. La proprietà è obbligatoria — se è nil nessun endpoint WebAuthn viene servito.

Esempio

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;

Torna alle Proprietà