Signs launch parameters with a server-held HMAC-SHA256 secret for secure SDK iframe embedding.
Called by pria-sdk.js before creating the launch iframe.
Security model:
SDK_LAUNCH_SECRET) is never exposed to the clientlaunch_* keys stripped) to ensure
consistent HMAC computation across sign and verify, since URL query strings coerce values to stringsOrigin validation:
Origin or Referer header is validated
against the institution’s publicAuthorizedUrls using exact hostname comparisonNODE_ENV !== 'production'), file:// origins (null/missing Origin header) are allowedDigital twin selector mode:
institutionId is an empty string and params.digitaltwin is true, institution lookup
and origin validation are skipped. The user will be presented with their existing digital twins
or the option to create a new one.Launch parameters to be HMAC-signed. All values are canonicalized (converted to strings
and launch_* keys are stripped) before signing to ensure consistency with the verify side,
since URL query strings coerce all values to strings.
Institution public UUID. Required for institution-specific launches.
May be an empty string "" for digital twin selector mode (when params.digitaltwin is true),
which skips institution lookup and origin validation.
"f831501f-b645-481a-9cbb-331509aaf8c1"
Parameters signed successfully
true
HMAC-SHA256 signature of the canonicalized launch parameters
"a1b2c3d4e5f6..."
Cryptographic nonce (32 hex chars) to prevent replay attacks
"f47ac10b58cc4372a5670e02b2c3d479"
Unix timestamp (seconds) when the token was issued
1740500000