createLicenseChallengeResponder() function

Build an onLicenseChallenge responder from an identity. This is the "designer" response: it proves the caller’s identity by signing the nonce and declares the licensed product, carrying no per-workflow signature — the right response for a direct-SDK client authoring its own workflows. Pass the result straight to NorskSettings.onLicenseChallenge:

const norsk = await Norsk.connect({
  onLicenseChallenge: createLicenseChallengeResponder({
    certJson: fs.readFileSync("identity.cert.json", "utf-8"),
    keyPem:   fs.readFileSync("identity.key.pem", "utf-8"),
    productName: "acme-product",
    imageRef: "acme/acme-product:1.0.0",
  }),
});

Signature:

export declare function createLicenseChallengeResponder(identity: LicenseIdentity): (challenge: Uint8Array) => LicenseChallengeResponse;

Parameters

Parameter Type Description

identity

LicenseIdentity

Returns:

(challenge: Uint8Array) ⇒ LicenseChallengeResponse