feat: Add Integrations page with API token management
New Integrations page in Wild Central UI for managing API tokens. Provides token display, copy, and rotation so Wild Cloud and other services can easily retrieve their authentication credentials. - GET /api/v1/integrations returns current API token - POST /api/v1/integrations/api-token/rotate generates a new token - Frontend with show/hide toggle, copy button, and usage instructions - Added to sidebar navigation under Central section
This commit is contained in:
10
web/src/router/pages/IntegrationsPage.tsx
Normal file
10
web/src/router/pages/IntegrationsPage.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ErrorBoundary } from '../../components';
|
||||
import { IntegrationsComponent } from '../../components/IntegrationsComponent';
|
||||
|
||||
export function IntegrationsPage() {
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<IntegrationsComponent />
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import { CrowdSecPage } from './pages/CrowdSecPage';
|
||||
import { DhcpPage } from './pages/DhcpPage';
|
||||
import { DnsFilterPage } from './pages/DnsFilterPage';
|
||||
import { AutheliaPage } from './pages/AutheliaPage';
|
||||
import { IntegrationsPage } from './pages/IntegrationsPage';
|
||||
import {
|
||||
HaproxyPage, DnsmasqPage, NftablesPage, WireguardPage,
|
||||
CrowdsecPage as CrowdsecAdvancedPage,
|
||||
@@ -30,6 +31,7 @@ export const routes: RouteObject[] = [
|
||||
{ path: 'auth', element: <AutheliaPage /> },
|
||||
{ path: 'dhcp', element: <DhcpPage /> },
|
||||
{ path: 'dns-filter', element: <DnsFilterPage /> },
|
||||
{ path: 'integrations', element: <IntegrationsPage /> },
|
||||
{ path: 'advanced/haproxy', element: <HaproxyPage /> },
|
||||
{ path: 'advanced/dnsmasq', element: <DnsmasqPage /> },
|
||||
{ path: 'advanced/nftables', element: <NftablesPage /> },
|
||||
|
||||
Reference in New Issue
Block a user