Skip to main content

Module license

Module license 

Source
Expand description

PhyTrace License Validation Module.

Provides JWT-based license validation with:

  • RS256 signature verification using embedded PhyWare public key
  • Expiry checking with 72-hour grace period
  • Dev mode bypass for local testing
  • Online validation heartbeat support

Structs§

LicenseClaims
Parsed claims from a license JWT
LicenseMetadata
License metadata added to every event as provenance.license, where it is signed with the rest of the provenance and stays out of the customer’s extensions (issue #249).
LicenseValidator
Validates PhyTrace license tokens

Enums§

LicenseError
License validation errors
LicenseStatus
Status of the license validation

Constants§

DEFAULT_GRACE_PERIOD_HOURS
Default grace period (72 hours)
DEV_MODE_ENV
Environment variable for dev mode bypass
PHYWARE_PUBLIC_KEY
PhyWare public key for RS256 JWT verification (placeholder) In production, this would be the actual RSA public key