data.identity.end-user.revoke-sessions.persist ​
Revoke all of an end-user's current tokens (sets the cut-off)
Set EndUser.tokens_invalid_before=now() and revoke outstanding continuation grants.
Input: end_user_uuid (required), actor (optional). Output: end_user_uuid, revoked_at, persisted, grants_revoked.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
end_user_uuid | uuid | Yes | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
end_user_uuid | uuid | Yes | — | — |
revoked_at | string | Yes | — | — |
persisted | boolean | Yes | — | — |
grants_revoked | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Revoke sessions |
completed | No | Yes | Yes | — | Persisted |
failed | No | Yes | No | — | Persist failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.identity.end-user.revoke-sessions.persist",
"initial_data": {
"end_user_uuid": "value"
}
}