Generate Secure Random Token

security · A315 · starter-package 7.0.1

Creates an authentication or workflow token.

Use

Issue a short-lived random reset, invitation, handoff, or correlation token whose signature and expiry can be verified later.

What the block does

Connect Cryptographic key to Credential output from the same workflow run. Only this block uses the key; the secret value is never shown in workflow output.

Inputs

  • keyAlias — Key alias: text; maximum 128; default workflow-default.
  • byteLength — Random bytes: number; minimum 16; maximum 64; default 32.
  • ttlSeconds — Lifetime (seconds): number; minimum 10; maximum 86400; default 3600.
  • subject — Subject: text; maximum 256; default empty.
  • key — Cryptographic key: text; required; accepted output Credential; default none.

Outputs

  • value — Token: text; checked before the workflow continues.
  • expiresAtEpochMs — Expires at: number; checked before the workflow continues.
  • fire — Fire: is true after successful execution.

Settings

Connected input takes precedence over the corresponding saved setting.

IDSettingControlDefaultBounds/options
keyAliasKey aliastextworkflow-defaultmaximum 128
byteLengthRandom bytesnumber32minimum 16; maximum 64
ttlSecondsLifetime (seconds)number3600minimum 10; maximum 86400
subjectSubjecttextemptymaximum 256

Error handling

  • Invalid input stops before the operation and names the affected setting.
  • Invalid keys, encodings, encrypted data, and tokens are clearly distinguished from missing connected output.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
keyAliasKey aliastextworkflow-default—
byteLengthRandom bytesnumber32—
ttlSecondsLifetime (seconds)number3600—
subjectSubjecttextEmpty text—