Add local password-TOTP sessions and scoped revocable MCP tokens

This commit is contained in:
2026-11-17 20:05:28 +01:00
parent 7fe20df34f
commit 9fa0fb81ff
17 changed files with 1804 additions and 27 deletions
+4
View File
@@ -8,6 +8,8 @@ mod agent_updates;
mod api;
mod artifact_store;
mod auth;
mod local_auth;
mod mcp_tokens;
mod catalog;
mod checkpoint_repair;
mod controls;
@@ -209,6 +211,8 @@ async fn main() -> Result<()> {
.route("/api/v1/tenants", get(api::tenants))
.route("/api/v1/tenants/{tenant}/devices", get(api::devices_page))
.route("/api/v1/tenants/{tenant}/devices/{asset}", get(api::device));
routes = mcp_tokens::routes(routes);
routes = routes.route("/auth/local/login", post(auth::local_login));
routes = jobs::routes(routes);
routes = script_library::routes(routes);
routes = controls::routes(routes);