TsgcWSAPIServer_WebAuthn › Właściwości › EndpointsOptions
Trasy URL obsługiwane przez komponent dla rejestracji WebAuthn, uwierzytelniania, dołączonej biblioteki JavaScript oraz strony testowej.
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 (biblioteka JS): włączony; Test: wyłączony.
Konfiguruje punkty końcowe HTTP udostępniane przez komponent do obsługi ruchu WebAuthn z warstwy JavaScript przeglądarki. Każdy wpis posiada flagę Enabled oraz ścieżkę URL Endpoint, która może być dostosowana. RegistrationOptions zwraca wyzwanie i dane Relying Party, aby urządzenie uwierzytelniające mogło utworzyć nowe poświadczenia. RegistrationVerify odbiera atestację i przechowuje klucz publiczny. AuthenticationOptions zwraca wyzwanie do logowania. AuthenticationVerify weryfikuje asercję przy użyciu przechowywanego klucza publicznego. WebAuthn dostarcza pomocniczy skrypt JavaScript. Aby używać własnej biblioteki klienta WebAuthn, należy go wyłączyć. Test dostarcza stronę testową HTML i powinien być wyłączony na środowisku produkcyjnym.
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;