mrhid6 a5f9fca59e feat: Authenticate the API with a bearer token as well as a cookie
One middleware, two ways to arrive at the same *Session, so every handler,
role guard, licence gate and audit call is untouched. The host guard
applies to both: a token carries an instance, and the tenant boundary must
not have a token-shaped hole in it.

The effective role is min(user, token) recomputed per request, so demoting
somebody demotes their tokens with them. A stale cookie beside a valid
bearer falls through rather than refusing a credential that would work.
2026-08-12 14:32:40 +00:00
2026-08-07 10:21:00 +01:00
2026-07-24 09:51:30 +01:00
2026-07-28 15:07:19 +01:00
2026-07-29 10:35:07 +01:00
2026-08-11 15:03:03 +00:00
2026-08-12 10:52:43 +00:00
2026-07-26 14:46:38 +01:00
2026-07-28 10:30:29 +01:00
S
Description
No description provided
14 MiB
agent/v1.3.4
Latest
2026-09-07 15:50:25 +00:00
Languages
JavaScript 71.9%
TypeScript 15.1%
Go 12.8%