Add users, roles, and per-novel permissions
Introduces accounts (ASP.NET Identity + cookie auth), four global roles (Admin/Writer/Editor/Reviewer), per-novel ownership and grants via ProjectMember, and a service-API-key principal for the MCP server and background import jobs. Enforcement lives in the application services (not endpoint filters) so the embedded agent and MCP tools, which call the same services directly, can't bypass it. Web client gets a login page, session-aware routing, and a People section for managing per-novel access. Also includes prior in-flight changes from this branch (CLAUDE.md compliance pass, dev-deploy docker-compose setup) that were uncommitted when this feature work started.
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
var builder = DistributedApplication.CreateBuilder(args);
|
||||
|
||||
// Port 5080 is pinned to match src/Novelly.Web's Vite proxy default and the curl-based
|
||||
// smoke checks in CLAUDE.md, so the API sits at the same address whether it is started
|
||||
// on its own with `dotnet run` or through this AppHost.
|
||||
var api = builder.AddProject<Projects.Novelly_Api>("api").WithHttpEndpoint(port: 5080, name: "http");
|
||||
|
||||
builder.AddViteApp("web", "../Novelly.Web", "dev")
|
||||
|
||||
Reference in New Issue
Block a user