Auth Service icon

Auth Service

Interact with an Auth Service instance — validate tokens, manage zones and tokens

List Tokens

AI-generated

Summary

Lists all API tokens from the configured Auth Service instance via an authenticated GET to /tokens, emitting each token as its own output item. Requires the credential to have the tokens:read scope.

Inputs

None.

Output shape

A list of items, one per token returned by the service. Each item's json is the token object exactly as the API returns it.

Runs once for each input item, so multiple input items repeat the request and duplicate the results. If the API response is not an array, no items are emitted. The exact token fields depend on the Auth Service API and are not defined in the node. With Continue on Fail enabled, a failed request produces an item with error and operation fields. Otherwise the node throws.

Examples

Example 1: Audit all existing API tokens and find ones to revoke.

Set Operation to List Tokens with a valid authServiceApi credential. Chain a Filter or IF node on the output items, then a Delete Token node.

Example 2: Check that a token exists before editing it.

List Tokens, then use a Filter node to match by name or ID. Pass the matching ID to Edit Token.

Links

Discussion