TsgcWSAPIServer_WebAuthn › Properties › EndpointsOptions
URL routes served by het component for WebAuthn registratie, authenticatie, the bundled JavaScript library and the test page.
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-bibliotheek): ingeschakeld; Test: uitgeschakeld.
Configureert de HTTP-eindpunten die door het component worden weergegeven voor het verwerken van WebAuthn-verkeer vanuit de JavaScript-laag van de browser. Elke invoer heeft een Enabled-vlag en een Endpoint-URL-pad dat kan worden aangepast. RegistrationOptions retourneert een challenge en Relying Party-gegevens zodat de authenticator een nieuwe referentie kan aanmaken; RegistrationVerify ontvangt de attestatie en slaat de openbare sleutel op. AuthenticationOptions retourneert een challenge voor aanmelden; AuthenticationVerify valideert de bewering met behulp van de opgeslagen openbare sleutel. WebAuthn levert de meegeleverde JavaScript-helper; schakel dit uit om uw eigen WebAuthn-clientbibliotheek te gebruiken. Test levert een HTML-testpagina en moet uitgeschakeld blijven in productie.
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;