TsgcWSAPIServer_WebAuthnプロパティ › Server

Server プロパティ

WebAuthn API がアタッチされている HTTP サーバーコンポーネント(TsgcWebSocketHTTPServer または TsgcWebSocketServer_HTTPAPI)。

構文

property Server: TsgcWSComponent_Server read FServer write SetServer;

デフォルト値

nil

解説

WebAuthn エンドポイントをホストする HTTP/WebSocket サーバーコンポーネントを参照します。EndpointsOptions で定義された URL を公開するには TsgcWebSocketHTTPServer または TsgcWebSocketServer_HTTPAPI を割り当ててください。WebAuthn はセキュアなコンテキストを必要とするため、サーバーは SSL/TLS(OpenSSL 3.0.0+)で設定され、WebAuthnOptions.RelyingParty で宣言されたホスト名で HTTPS を通じて到達可能である必要があります。このプロパティは必須です。nil の場合、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;

プロパティに戻る