mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 15:33:18 +08:00
feat(auth): add local login, audit, API keys, and system admin UI
Gate netx Web/API/WebCRT with JWT and per-user API tokens, bootstrap an admin with forced password change, and expose users/audit/API-key management under a System section. MCP can reuse data/auth/mcp_token without extra env for local labs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
14f14d34bd
commit
6d4cd741ef
35 changed files with 2699 additions and 21 deletions
|
|
@ -7,6 +7,7 @@ import App from "./App.tsx";
|
|||
import { ErrorBoundary } from "./layout/ErrorBoundary";
|
||||
import { I18nProvider } from "./i18n";
|
||||
import { ToastProvider } from "./hooks/useToast";
|
||||
import { AuthProvider } from "./auth/AuthContext";
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
|
|
@ -17,7 +18,9 @@ createRoot(document.getElementById("root")!).render(
|
|||
<I18nProvider>
|
||||
<ToastProvider>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
<AuthProvider>
|
||||
<App />
|
||||
</AuthProvider>
|
||||
</BrowserRouter>
|
||||
</ToastProvider>
|
||||
</I18nProvider>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue