iya-sts
    Preparing search index...

    Function verifyAssertion

    • Verifies an authentication assertion (WebAuthn section 7.2).

      Checks the client data type, challenge and origin, the RP ID hash, user presence (and verification when required), that the signature counter advanced when a previous one is given, and the signature over the authenticator data and the client data hash.

      Parameters

      • input: any

        authenticatorData, clientDataJSON and signature (base64url), publicKeyJwk, expectedChallenge, expectedOrigin, expectedRpId, and optionally requireUserVerification, previousSignCount, allowInsecure (accept RS1), and expectedAppId with appidUsed (#1955 P7: the rpIdHash is SHA-256 of the AppID only when both are given and appidUsed is true)

      Returns {
          algorithm: any;
          appIdHashed: boolean;
          checks: any[];
          coseAlg: number;
          failed: any[];
          flags: {
              at: boolean;
              be: boolean;
              bs: boolean;
              ed: boolean;
              up: boolean;
              uv: boolean;
          };
          ok: boolean;
          signatureValid: boolean;
          signCount: any;
      }

      ok, every check with its result, whether the signature is valid, the signature counter, the flags, and the algorithm checked with (coseAlg, algorithm)

      when the authenticator data cannot be parsed