تخطَّ إلى المحتوى

tokens

هذا المحتوى غير متوفر بلغتك بعد.

HLS encryption keys, content delivery tokens, and entitlement checks. Free: MIT licensed.

Terminal window
nself plugin install tokens

Manages HLS encryption keys for video delivery, issues time-limited content delivery tokens, and performs entitlement checks before serving protected content. Used by video streaming setups to gate content behind authentication without requiring per-request auth server calls.

Env VarDefaultDescription
TOKENS_PORT3108Service port
TOKENS_SECRET(auto-generated)Token signing secret
TOKENS_TTL3600Default token TTL in seconds
TOKENS_HLS_KEY_ROTATION3600HLS key rotation interval
PortPurpose
3108Tokens REST API

5 tables added to your Postgres database:

  • np_tokens_tokens: issued token records
  • np_tokens_hls_keys: HLS encryption key archive
  • np_tokens_entitlements: user content entitlements
  • np_tokens_revocations: revoked tokens
  • np_tokens_audit: token issuance audit log
RouteTarget
/tokens/Token issuance and validation API
/keys/HLS key delivery endpoint