TsgcWSAPIServer_WebAuthnEigenschappen › WebAuthnOptions

WebAuthnOptions Eigenschap

Configuratie van de Relying Party: RPName, RPID, Origins, ondersteunde algoritmen, attestatieformaten, gebruikersverificatie, time-out en authenticatorselectie.

Syntaxis

property WebAuthnOptions: TsgcWSWebAuthnServer_Options read FWebAuthnOptions write SetWebAuthnOptions;

Standaardwaarde

RelyingParty (RPID) leeg — moet worden ingesteld op de server-DNS-naam. Algoritmen: ES256 + RS256. Alle attestatieformaten ingeschakeld. AllowCrossOrigins: false. AllowCredentials: false. ExcludeCredentials: false.

Opmerkingen

Hoofdinstellingen van WebAuthn (FIDO2) Relying Party die worden gebruikt voor zowel referentieregistratie (navigator.credentials.create()) als voor authenticatie (navigator.credentials.get()). RelyingParty is verplicht en moet overeenkomen met de DNS-naam van de server (bijvoorbeeld www.test.com). Extra Origins en TopOrigins kunnen worden geconfigureerd wanneer verzoeken afkomstig zijn van extra domeinen of ingesloten iframes, en AllowCrossOrigins maakt cross-origin iframe-stromen mogelijk. De Algorithms-set bepaalt welke COSE-handtekeningalgoritmen worden geaccepteerd (ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512, RS1, EdDSA); standaard zijn alleen ES256 en RS256 ingeschakeld. Attestatieformaten (None, Packed, TPM, AndroidKey, Apple, FidoU2F) kunnen afzonderlijk worden in- of uitgeschakeld. AllowCredentials / ExcludeCredentials / Limit bepalen welke referentie-ID's tijdens authenticatie en registratie naar de client worden verzonden.

Voorbeeld

oWebAuthn.WebAuthnOptions.RelyingParty := 'www.test.com';
oWebAuthn.WebAuthnOptions.Origins.Add('https://login.test.com');
oWebAuthn.WebAuthnOptions.Algorithms.ES256 := True;
oWebAuthn.WebAuthnOptions.Algorithms.RS256 := True;
oWebAuthn.WebAuthnOptions.Attestation.NoneAttestation := True;
oWebAuthn.WebAuthnOptions.Attestation.PackedAttestation := True;
oWebAuthn.WebAuthnOptions.Credentials.ExcludeCredentials := True;
oWebAuthn.WebAuthnOptions.Credentials.Limit := 10;

Terug naar Properties