feat(auth): enhance security and audit logging
- Integrate webhook alerts for admin login lockouts. - Implement detailed audit logging for login, logout, and setup actions. - Improve client revocation event tracking. - Standardize error handling in profile updates. - Enforce 'operator' role for event API access.
This commit is contained in:
1 parent
5c977d6977
commit
8132087085
52 files changed
+4434
-407
No files matched your search
@@ -1,8 +1,25 @@
|
||||
'use client';
|
||||
|
||||
import { MainLayout } from '@/components/layout/MainLayout';
|
||||
import React from 'react';
|
||||
import type { VconAdminRole } from '@/lib/vconUiHelpers';
|
||||
import React, { createContext, useContext } from 'react';
|
||||
|
||||
export function VconShell({ children }: { children: React.ReactNode }) {
|
||||
return <MainLayout showSidebar={true}>{children}</MainLayout>;
|
||||
const VconRoleContext = createContext<VconAdminRole>('owner');
|
||||
|
||||
export function useVconRole(): VconAdminRole {
|
||||
return useContext(VconRoleContext);
|
||||
}
|
||||
|
||||
export function VconShell({
|
||||
role = 'owner',
|
||||
children,
|
||||
}: {
|
||||
role?: VconAdminRole;
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<VconRoleContext.Provider value={role}>
|
||||
<MainLayout showSidebar={true}>{children}</MainLayout>
|
||||
</VconRoleContext.Provider>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user