TsgcWSAPIServer_WebAuthnProperties › EndpointsOptions

EndpointsOptions プロパティ

WebAuthnの登録、認証、付属のJavaScriptライブラリ、およびテストページのために、コンポーネントが提供するURLルートです。

構文

property EndpointsOptions: TsgcWSWebAuthnEndpoints_Options read FEndpointsOptions write SetEndpointsOptions;

デフォルト値

RegistrationOptions: /sgcWebAuthn/Registration/Options; RegistrationVerify: /sgcWebAuthn/Registration/Verify; AuthenticationOptions: /sgcWebAuthn/Authentication/Options; AuthenticationVerify: /sgcWebAuthn/Authentication/Verify; WebAuthn(JSライブラリ): 有効; Test: 無効。

解説

ブラウザーのJavaScriptレイヤーからのWebAuthnトラフィックを処理するためにコンポーネントが公開するHTTPエンドポイントを構成します。各エントリにはEnabledフラグと、カスタマイズ可能なEndpoint URLパスがあります。RegistrationOptionsは、認証器が新しい資格情報を作成できるようにチャレンジとRelying Partyデータを返します。RegistrationVerifyはアテステーションを受信し、公開鍵を保存します。AuthenticationOptionsはサインイン用のチャレンジを返します。AuthenticationVerifyは、保存された公開鍵を使用してアサーションを検証します。WebAuthnは、バンドルされたJavaScriptヘルパーを配信します。独自のWebAuthnクライアントライブラリを配布する場合は、これを無効にしてください。TestはHTMLテストページを配信し、本番環境では無効のままにしておく必要があります。

使用例

oWebAuthn.EndpointsOptions.RegistrationOptions.Endpoint := '/api/webauthn/register/options';
oWebAuthn.EndpointsOptions.RegistrationVerify.Endpoint := '/api/webauthn/register/verify';
oWebAuthn.EndpointsOptions.AuthenticationOptions.Endpoint := '/api/webauthn/login/options';
oWebAuthn.EndpointsOptions.AuthenticationVerify.Endpoint := '/api/webauthn/login/verify';
oWebAuthn.EndpointsOptions.WebAuthn.Enabled := True;
oWebAuthn.EndpointsOptions.Test.Enabled := False;

プロパティに戻る