ZacharyZcR b63852ee5c feat(sdk): let plugins mint a short-lived user session and read a user's locale (#1666)
ctx.auth.issueUserToken(userId, { purpose, ttlSeconds }) gives background
work a session for calling Termix's own API as an existing user. It needs
users:impersonate, defaults to 300s and is capped at 900s, is stored as a
normal session row marked as plugin-issued, and every issue is audited.
Such sessions are refused on routes that change the user's password,
second factors, API keys or linked logins.

ctx.users.getLocale(userId) reads the user's UI language under users:read.

SDK 1.0.11, plugin API 1.3.0.
2026-10-17 19:03:19 -05:00
2026-10-01 16:20:16 -05:00
2026-10-12 11:35:48 -05:00
2026-10-12 11:35:48 -05:00
2026-05-06 15:12:07 -05:00
2026-10-10 14:58:27 -05:00
2026-10-10 14:58:27 -05:00
2026-10-10 14:58:27 -05:00
2026-10-10 14:58:27 -05:00
2026-05-06 15:12:07 -05:00
2026-05-06 15:12:07 -05:00
2026-10-10 14:58:27 -05:00
2025-11-05 10:36:16 -06:00
2026-10-10 14:58:27 -05:00
2026-08-06 14:41:39 -05:00
2026-08-06 14:41:39 -05:00
2026-08-06 14:41:39 -05:00
2026-10-10 14:58:27 -05:00
2026-10-12 11:35:48 -05:00
2026-10-10 14:58:27 -05:00
2026-10-12 11:35:48 -05:00
2026-10-01 16:20:16 -05:00
2026-10-10 14:58:27 -05:00
2026-10-10 14:58:27 -05:00
2026-06-04 14:16:53 -05:00
2026-10-01 16:20:16 -05:00
2026-10-10 14:58:27 -05:00
2026-10-10 14:58:27 -05:00
2026-10-10 14:58:27 -05:00
S
Description
Mirror of Termix (Apache-2.0) — parked for future Service Desk integration
Readme Apache-2.0
103 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 94.5%
JavaScript 5%
CSS 0.2%
Shell 0.1%