On this page
Sommatic Docs
Open portal

Veripass Policy Evaluation

Evaluates access policies against Veripass Identity Contract.

View as Markdown
Open in
Identity Available veripass.evaluate Version 1.0.0 Execution: async

Asks Veripass for a policy decision on an action over a resource and routes to allow, challenge or deny according to the decision in the response.

How it works

  1. Resolves the config; leaves through error when connection_id or action is empty.
  2. Resolves the credential on the server: its configuration gives the Veripass base URL (url or baseUrl) and optional extra headers; its secret gives the authentication.
  3. Sends POST <base URL>/api/identity/contract/evaluate with the body { policy_set, resource, action, context } (context defaults to {}).
  4. Reads decision, reason and obligations from the response body.
  5. Routes allow to allow and challenge to challenge. Any other value, including a missing one, goes to deny with decision: "deny" and reason defaulting to Policy denied.
  6. A network error or a non-2xx answer leaves through error with the message and the response body.

In a workflow

The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.

{
  "node_id": "node-authorize-approval",
  "label": "Authorize invoice approval",
  "operator_slug": "veripass.evaluate",
  "operator_version": "1.0.0",
  "config": {
    "connection_id": "pi-credential-xxxx",
    "policy_set": "finance-approvals",
    "resource": "invoice:{{ $json.invoice_id }}",
    "action": "approve",
    "context": "{{ $json.request_context }}"
  }
}

Configuration

connection_id string Required

Credential for Veripass policy evaluation. Accepts credentials of type `api-key` (Veripass API key).

policy_set string Optional

Policy Set ID or Name

resource string Optional

Resource identifier

action string Required

Action (read, write, etc.)

context object Optional

Additional context (user_id, IP, etc.)

Behaviour in the code

What the implementation does with these keys beyond what the schema says.

connection_id
The credential configuration must include the Veripass base URL as url (or baseUrl); headers there are added to the request. Authentication comes from the secret: an object with token sends Authorization: Bearer <token>, an object with apiKey sends x-api-key. A plain string secret adds no authentication header.
context
Sent as-is. Use a pure expression such as {{ $json.request_context }} to pass an object; mixed text arrives as a string.

Output ports

allow default

Veripass answered decision: "allow".

Data
{
  "decision": "allow",
  "reason": "Role approver may approve invoices",
  "obligations": []
}
challenge

Veripass answered decision: "challenge" (for example step-up authentication).

Data
{
  "decision": "challenge",
  "reason": "Step-up authentication required",
  "obligations": [
    "mfa"
  ]
}
deny

Veripass answered deny, any other value, or no decision at all.

Data
{
  "decision": "deny",
  "reason": "Policy denied"
}
error

Missing connection_id or action, the credential cannot be resolved, or the HTTP call failed.

Data
{
  "error": "Request failed with status code 401",
  "response": {
    "message": "Unauthorized"
  }
}

In expressions

What a later node can read from this node's output with $("Veripass Policy Evaluation").item.json.<path> (write your node's label instead of Veripass Policy Evaluation). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through allow, from the output shown in Ports.

ExpressionEditorWorker
$("Veripass Policy Evaluation").item.json.decisionstring= "allow"
$("Veripass Policy Evaluation").item.json.reasonstring= "Role approver may approve invoices"
$("Veripass Policy Evaluation").item.json.obligationsarray= […] (0)

Errors

Message Port Cause and fix
connection_id is required error No Veripass credential is selected.
action is required error action is empty or its expression resolved to nothing.
Request failed with status code <status> error Veripass rejected the call: 401/403 usually means the credential secret does not carry a usable token or apiKey; 404 means the base URL is wrong. response holds the body Veripass returned.
Failed to resolve connection <connection_id>: <detail> error The credential id does not exist or is not available to this workflow.

Input contract

connection_id string Required
policy_set string Optional
resource string Optional
action string Required
context object Optional

Output contract

decision string Optional

Allowed values: allowdenychallenge

reason string Optional
obligations array Optional

Contracts (JSON Schema)

The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.

{
  "slug": "veripass.evaluate",
  "name": "Veripass Policy Evaluation",
  "category": "identity",
  "version": "1.0.0",
  "description": "Evaluates access policies against Veripass Identity Contract.",
  "capabilities": [
    "authz",
    "policy",
    "veripass",
    "identity"
  ],
  "config_schema": {
    "type": "object",
    "properties": {
      "connection_id": {
        "type": "string",
        "title": "Veripass Credential",
        "description": "Credential for Veripass policy evaluation. Accepts credentials of type `api-key` (Veripass API key).",
        "ui_widget": "connection_picker",
        "ui_options": {
          "credential_types": [
            "api-key"
          ],
          "types": [
            "veripass",
            "http"
          ]
        }
      },
      "policy_set": {
        "type": "string",
        "description": "Policy Set ID or Name"
      },
      "resource": {
        "type": "string",
        "description": "Resource identifier"
      },
      "action": {
        "type": "string",
        "description": "Action (read, write, etc.)"
      },
      "context": {
        "type": "object",
        "description": "Additional context (user_id, IP, etc.)"
      }
    },
    "required": [
      "connection_id",
      "action"
    ]
  },
  "input_contract_schema": {
    "type": "object",
    "properties": {
      "connection_id": {
        "type": "string"
      },
      "policy_set": {
        "type": "string"
      },
      "resource": {
        "type": "string"
      },
      "action": {
        "type": "string"
      },
      "context": {
        "type": "object"
      }
    },
    "required": [
      "connection_id",
      "action"
    ]
  },
  "output_contract_schema": {
    "type": "object",
    "properties": {
      "decision": {
        "type": "string",
        "enum": [
          "allow",
          "deny",
          "challenge"
        ]
      },
      "reason": {
        "type": "string"
      },
      "obligations": {
        "type": "array"
      }
    }
  },
  "ports": [
    {
      "port_id": "allow",
      "label": "Allow",
      "description": "Access granted",
      "is_default": true,
      "supports_condition": true
    },
    {
      "port_id": "deny",
      "label": "Deny",
      "description": "Access denied",
      "is_default": false,
      "supports_condition": true
    },
    {
      "port_id": "challenge",
      "label": "Challenge",
      "description": "MFA or step-up required",
      "is_default": false,
      "supports_condition": true
    },
    {
      "port_id": "error",
      "label": "Error",
      "description": "Evaluation error",
      "is_default": false,
      "supports_condition": false
    }
  ],
  "execution_mode": "async",
  "required_resources": [],
  "compatible_worker_pools": [
    "identity-worker",
    "standard"
  ],
  "tags": [
    "veripass",
    "security",
    "policy"
  ],
  "is_stateful": false,
  "publisher": {
    "identity": "org_veripass",
    "profile": {
      "name": "Veripass",
      "verified": true,
      "url": "https://me.veripass.com/veripass",
      "logo_url": null
    }
  }
}

Execution

Execution
async
Stateful
No
Credentials
Resolved on the server from connection_id; the secret never reaches the workflow.
Capabilities
authzpolicyveripassidentity
Tags
veripasssecuritypolicy

Notes and limits

  • Unknown or missing decisions route to deny, so the node fails closed.
  • The returned envelopes carry no ok field, and no request timeout is set on the call.
  • Leaving through error does not fail the run: the engine follows the edges wired to error, and if there are none the branch simply ends.

Reviewed against the orchestrator code · 31e874b · 2026-11-26

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs