Skip to content
Oclavex is in private preview, open to existing MonetizeIt users. New users who would like to evaluate Oclavex before the public launch can request access at info@revenusion.com.

Credentials & secrets

Four kinds of secret material exist in an Oclavex integration. Each has its own rotation procedure; none needs to be shared between them.

Created under Settings → API credentials (guide). Every plan includes at least one API client, so your backend authenticates with client credentials; higher plans raise the limit (what each plan includes).

  • The secret is shown once, at creation. Store it in your secret manager; if it’s lost, Rotate secret… issues a new one — there is no way to read it back.
  • After Rotate secret…, the old secret keeps working for up to seven days, so each service can move to the new one without downtime. Rotating again before then stops the older secret at once. The credential’s card in Settings → API credentials shows the date the old secret stops working. Once every service uses the new secret, choose Retire previous secret… in the credential’s ⋮ menu to stop the old one sooner.
  • Grant each client the narrowest scopes that work (scope catalog) and use separate clients per system, so one leaked credential reaches little and is disabled in one place. Disable is the soft switch: it blocks new token issuance, but tokens already issued stay valid until they expire naturally. An issued access token lives up to an hour and nothing recalls it, so Disable on its own leaves a window that long. On a confirmed leak, Delete the client, or choose Rotate secret… and then Retire previous secret…. Either one stops the leaked secret at once. Tokens already issued with it stay valid for up to an hour; treat that hour as exposure you still have to account for.
  • Client secrets belong on servers only. A desktop or device build never carries one — the license-session model exists so it doesn’t have to.

Each subscription has an HMAC secret used to sign every delivery. It is a Standard Webhooks secret — whsec_ followed by the base64 of 24 to 64 random bytes — so a stock Standard Webhooks library takes it as it is.

  • The portal generates the secret when you create a subscription or rotate one, and shows it once. Through the API you supply one in the same form.

  • Rotate from the portal (Settings → Webhooks), or — for a subscription an integration credential created — POST /api/v1/webhooks/integrator/subscriptions/{subscriptionId}/rotate-secret.

  • Rotation has an overlap window: deliveries carry signatures under both the old and new secret until it closes, so a receiver that checks all candidate signatures drops nothing during the roll.

  • Rotations are recorded in the audit trail.

Licenses are RSA-signed JWTs.

  • Devices hold only the public key — pin it in the .NET SDK (fetch once from GET /api/v1/provision/admin/providers/license-signing-key, or list every live key from GET .../providers/license-signing-keys if you’re pinning a set for rotation, below). Nothing that ships to a customer machine can mint or alter a license.
  • The same key signs offline activation responses and usage receipts, so air-gapped devices verify artifacts with the key they already trust.
  • License tokens are bearer credentials for their session: don’t log them, and release the session (ReleaseSessionAsync / POST .../release) when done.
  • The SDK’s on-disk license cache is encrypted at rest, on by default — see at-rest encryption of the cache. It’s a different protection from the signature above: the signature stops a forged or altered license; cache encryption stops a copied cache file from being read on another machine.

Unlike the other secrets on this page, you can’t just issue a new signing key and move on — every license already on a customer’s machine was signed by the old one, and swapping keys must never invalidate them mid-lease. Settings → License signing keys (admin-only) drives this as a four-step, no-downtime cycle:

  1. Publish a new key. It exists, but signs nothing yet — new activations keep using the current key.
  2. Ship a build that pins both keys — the current one and the one you just published — via the SDK’s multi-key UsePublicKey. An ASP.NET Core host pins both keys in configuration instead: Oclavex:LicenseConsumer:PublicKeys maps each key id to its key (for example PublicKeys:old and PublicKeys:new) and takes precedence over PublicKey. Wait until most of your fleet runs this build.
  3. Promote the new key. The provider now signs everything — new licenses, offline activation responses, usage receipts — with it. Licenses the old key already issued keep validating, because clients still pin that key too.
  4. Archive the old key once nothing depends on it any longer. This is the one irreversible step: archiving stops the key verifying anything it signed, immediately. The portal refuses to archive a provider’s only live key, and won’t let you archive the currently-active one directly — promote a replacement first.

A client that only pins one key (the pre-rotation default) isn’t rejected on key_id grounds: a bare pinned key verifies a license carrying any key_id, so the licenses its key already signed keep validating. What it cannot verify is anything the new key signs after promotion — ship such clients the two-key build of step 2 before their license is next re-signed.

A key can’t be published with an expiry that has already passed, and an expired key can’t be promoted: it would sign licenses that no app accepts.

The cycle above is for production. In a Sandbox or Staging environment the platform rotates the keys automatically and nobody can publish, promote or archive one: each key is published, starts signing a week later, signs for a week and expires a week after it stops signing. Licenses there never outlive their signing key, so a build that pinned a test environment’s keys stops verifying new licenses within two weeks. Settings → License signing keys only lists the keys there, with their expiry and a copy button. Fetch the keys on every build as described in Keys in a test environment rotate.

  • Tokens from the client-credentials grant are short-lived by design. Cache one and refresh on expiry (the SDK’s authentication providers do this); don’t request a fresh token per call.
  • Keep tokens out of logs, URLs and error reports — they’re Authorization header material only.