@open-mercato/enterprise 0.6.7-develop.6863.1.61001cf9a8 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/TERMS.md +6 -19
- package/dist/modules/security/api/i18n.js +0 -1
- package/dist/modules/security/api/i18n.js.map +2 -2
- package/dist/modules/security/api/mfa/_shared.js +0 -25
- package/dist/modules/security/api/mfa/_shared.js.map +2 -2
- package/dist/modules/security/api/mfa/methods/[id]/route.js +1 -1
- package/dist/modules/security/api/mfa/methods/[id]/route.js.map +2 -2
- package/dist/modules/security/api/mfa/provider/[providername]/route.js +3 -15
- package/dist/modules/security/api/mfa/provider/[providername]/route.js.map +2 -2
- package/dist/modules/security/api/mfa/recovery-codes/regenerate/route.js +1 -1
- package/dist/modules/security/api/mfa/recovery-codes/regenerate/route.js.map +2 -2
- package/dist/modules/security/backend/profile/security/page.js +2 -3
- package/dist/modules/security/backend/profile/security/page.js.map +2 -2
- package/dist/modules/security/backend/security/enforcement/page.js +1 -2
- package/dist/modules/security/backend/security/enforcement/page.js.map +2 -2
- package/dist/modules/security/backend/security/sudo/page.js +1 -2
- package/dist/modules/security/backend/security/sudo/page.js.map +2 -2
- package/dist/modules/security/backend/security/users/page.js +1 -2
- package/dist/modules/security/backend/security/users/page.js.map +2 -2
- package/dist/modules/security/lib/enforcement-redirect.js +14 -36
- package/dist/modules/security/lib/enforcement-redirect.js.map +2 -2
- package/dist/modules/security/setup.js +1 -1
- package/dist/modules/security/setup.js.map +2 -2
- package/dist/modules/sso/services/accountLinkingService.js +2 -2
- package/dist/modules/sso/services/accountLinkingService.js.map +2 -2
- package/package.json +9 -10
- package/src/modules/security/api/i18n.ts +0 -1
- package/src/modules/security/api/mfa/_shared.ts +0 -48
- package/src/modules/security/api/mfa/methods/[id]/route.ts +1 -1
- package/src/modules/security/api/mfa/provider/[providername]/route.ts +1 -13
- package/src/modules/security/api/mfa/recovery-codes/regenerate/route.ts +1 -1
- package/src/modules/security/backend/profile/security/page.tsx +2 -3
- package/src/modules/security/backend/security/enforcement/page.tsx +1 -2
- package/src/modules/security/backend/security/sudo/page.tsx +1 -2
- package/src/modules/security/backend/security/users/page.tsx +1 -2
- package/src/modules/security/lib/enforcement-redirect.ts +15 -50
- package/src/modules/security/setup.ts +1 -1
- package/src/modules/sso/services/accountLinkingService.ts +2 -2
- package/dist/modules/record_locks/i18n/ko.json +0 -78
- package/dist/modules/security/extension-points.js +0 -17
- package/dist/modules/security/extension-points.js.map +0 -7
- package/dist/modules/security/i18n/ko.json +0 -487
- package/dist/modules/sso/i18n/ko.json +0 -148
- package/dist/modules/system_status_overlays/i18n/ko.json +0 -8
- package/src/modules/record_locks/i18n/ko.json +0 -78
- package/src/modules/security/extension-points.ts +0 -14
- package/src/modules/security/i18n/ko.json +0 -487
- package/src/modules/sso/i18n/ko.json +0 -148
- package/src/modules/system_status_overlays/i18n/ko.json +0 -8
|
@@ -12,7 +12,6 @@ type MessageDescriptor = {
|
|
|
12
12
|
const exactMessageMap = new Map<string, MessageDescriptor>([
|
|
13
13
|
['Not implemented', { key: 'security.api.errors.notImplemented', fallback: 'Not implemented.' }],
|
|
14
14
|
['Unauthorized', { key: 'api.errors.unauthorized', fallback: 'Unauthorized' }],
|
|
15
|
-
['Forbidden', { key: 'api.errors.forbidden', fallback: 'Forbidden' }],
|
|
16
15
|
['Invalid payload', { key: 'api.errors.invalidPayload', fallback: 'Invalid payload.' }],
|
|
17
16
|
['Invalid query parameters', { key: 'security.api.errors.invalidQueryParameters', fallback: 'Invalid query parameters.' }],
|
|
18
17
|
['Invalid route parameters', { key: 'security.api.errors.invalidRouteParameters', fallback: 'Invalid route parameters.' }],
|
|
@@ -11,7 +11,6 @@ import { localizeSecurityApiBody, securityApiError } from '../i18n'
|
|
|
11
11
|
import { createLogger } from '@open-mercato/shared/lib/logger'
|
|
12
12
|
|
|
13
13
|
const logger = createLogger('security').child({ component: 'mfa' })
|
|
14
|
-
const MFA_MANAGE_FEATURE = 'security.mfa.manage'
|
|
15
14
|
|
|
16
15
|
const jsonRecordSchema = z.record(z.string(), z.unknown())
|
|
17
16
|
|
|
@@ -23,21 +22,6 @@ export type MfaRequestContext = {
|
|
|
23
22
|
mfaVerificationService: MfaVerificationService
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
type MfaEnrollmentRbacService = {
|
|
27
|
-
userHasAllFeatures: (
|
|
28
|
-
userId: string,
|
|
29
|
-
features: string[],
|
|
30
|
-
scope: { tenantId: string | null; organizationId: string | null },
|
|
31
|
-
) => Promise<boolean>
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
type MfaEnrollmentEnforcementService = {
|
|
35
|
-
checkUserCompliance: (userId: string) => Promise<{
|
|
36
|
-
compliant: boolean
|
|
37
|
-
enforced: boolean
|
|
38
|
-
}>
|
|
39
|
-
}
|
|
40
|
-
|
|
41
25
|
export async function resolveMfaRequestContext(req: Request): Promise<MfaRequestContext | NextResponse> {
|
|
42
26
|
const auth = await getAuthFromRequest(req)
|
|
43
27
|
if (!auth?.sub) {
|
|
@@ -61,38 +45,6 @@ export async function resolveMfaRequestContext(req: Request): Promise<MfaRequest
|
|
|
61
45
|
}
|
|
62
46
|
}
|
|
63
47
|
|
|
64
|
-
export async function authorizeMfaEnrollmentMutation(
|
|
65
|
-
context: Pick<MfaRequestContext, 'auth' | 'container'>,
|
|
66
|
-
): Promise<NextResponse | null> {
|
|
67
|
-
const tenantId = typeof context.auth.tenantId === 'string' && context.auth.tenantId.trim().length > 0
|
|
68
|
-
? context.auth.tenantId.trim()
|
|
69
|
-
: null
|
|
70
|
-
const organizationId = typeof context.auth.orgId === 'string' && context.auth.orgId.trim().length > 0
|
|
71
|
-
? context.auth.orgId.trim()
|
|
72
|
-
: null
|
|
73
|
-
const rbacService = context.container.resolve<MfaEnrollmentRbacService>('rbacService')
|
|
74
|
-
const canManageMfa = await rbacService.userHasAllFeatures(
|
|
75
|
-
context.auth.sub,
|
|
76
|
-
[MFA_MANAGE_FEATURE],
|
|
77
|
-
{ tenantId, organizationId },
|
|
78
|
-
)
|
|
79
|
-
if (canManageMfa) return null
|
|
80
|
-
if (!tenantId) return securityApiError(403, 'Forbidden')
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
const enforcementService = context.container.resolve<MfaEnrollmentEnforcementService>('mfaEnforcementService')
|
|
84
|
-
const compliance = await enforcementService.checkUserCompliance(context.auth.sub)
|
|
85
|
-
if (compliance.enforced && !compliance.compliant) return null
|
|
86
|
-
} catch (error) {
|
|
87
|
-
logger.error('Unable to verify compelled MFA enrollment authorization; allowing enrollment recovery path', {
|
|
88
|
-
err: error,
|
|
89
|
-
})
|
|
90
|
-
return null
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return securityApiError(403, 'Forbidden')
|
|
94
|
-
}
|
|
95
|
-
|
|
96
48
|
export async function readJsonRecord(req: Request): Promise<Record<string, unknown>> {
|
|
97
49
|
try {
|
|
98
50
|
const parsed = jsonRecordSchema.safeParse(await req.json())
|
|
@@ -14,7 +14,7 @@ const paramsSchema = z.object({
|
|
|
14
14
|
})
|
|
15
15
|
|
|
16
16
|
export const metadata = {
|
|
17
|
-
DELETE: { requireAuth: true
|
|
17
|
+
DELETE: { requireAuth: true },
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export async function DELETE(req: Request, context: { params: Promise<{ id: string }> }) {
|
|
@@ -2,13 +2,7 @@ import { NextResponse } from 'next/server'
|
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
import { buildSecurityOpenApi, securityErrorSchema } from '../../../openapi'
|
|
4
4
|
import { securityApiError } from '../../../i18n'
|
|
5
|
-
import {
|
|
6
|
-
authorizeMfaEnrollmentMutation,
|
|
7
|
-
mapMfaError,
|
|
8
|
-
readJsonRecord,
|
|
9
|
-
readString,
|
|
10
|
-
resolveMfaRequestContext,
|
|
11
|
-
} from '../../_shared'
|
|
5
|
+
import { mapMfaError, readJsonRecord, readString, resolveMfaRequestContext } from '../../_shared'
|
|
12
6
|
|
|
13
7
|
const paramsSchema = z.object({
|
|
14
8
|
providername: z.string().min(1),
|
|
@@ -38,8 +32,6 @@ export const metadata = {
|
|
|
38
32
|
export async function POST(req: Request, context: { params: Promise<{ providername: string }> }) {
|
|
39
33
|
const requestContext = await resolveMfaRequestContext(req)
|
|
40
34
|
if (requestContext instanceof NextResponse) return requestContext
|
|
41
|
-
const authorizationError = await authorizeMfaEnrollmentMutation(requestContext)
|
|
42
|
-
if (authorizationError) return authorizationError
|
|
43
35
|
|
|
44
36
|
const body = await readJsonRecord(req)
|
|
45
37
|
const params = await context.params
|
|
@@ -69,8 +61,6 @@ export async function POST(req: Request, context: { params: Promise<{ providerna
|
|
|
69
61
|
export async function PUT(req: Request, context: { params: Promise<{ providername: string }> }) {
|
|
70
62
|
const requestContext = await resolveMfaRequestContext(req)
|
|
71
63
|
if (requestContext instanceof NextResponse) return requestContext
|
|
72
|
-
const authorizationError = await authorizeMfaEnrollmentMutation(requestContext)
|
|
73
|
-
if (authorizationError) return authorizationError
|
|
74
64
|
|
|
75
65
|
const body = await readJsonRecord(req)
|
|
76
66
|
const params = await context.params
|
|
@@ -116,7 +106,6 @@ export const openApi = buildSecurityOpenApi({
|
|
|
116
106
|
errors: [
|
|
117
107
|
{ status: 400, description: 'Invalid provider type or payload', schema: securityErrorSchema },
|
|
118
108
|
{ status: 401, description: 'Unauthorized', schema: securityErrorSchema },
|
|
119
|
-
{ status: 403, description: 'MFA enrollment is not permitted', schema: securityErrorSchema },
|
|
120
109
|
],
|
|
121
110
|
},
|
|
122
111
|
PUT: {
|
|
@@ -130,7 +119,6 @@ export const openApi = buildSecurityOpenApi({
|
|
|
130
119
|
errors: [
|
|
131
120
|
{ status: 400, description: 'Invalid provider type or payload', schema: securityErrorSchema },
|
|
132
121
|
{ status: 401, description: 'Unauthorized', schema: securityErrorSchema },
|
|
133
|
-
{ status: 403, description: 'MFA enrollment is not permitted', schema: securityErrorSchema },
|
|
134
122
|
],
|
|
135
123
|
},
|
|
136
124
|
},
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
4
4
|
import { InjectionSpot } from '@open-mercato/ui/backend/injection/InjectionSpot'
|
|
5
|
-
import { extensionPoints } from '@open-mercato/enterprise/modules/security/extension-points'
|
|
6
5
|
import MfaSettingsRedirect from '../../../components/MfaSettingsRedirect'
|
|
7
6
|
import PasswordChangeForm from '../../../components/PasswordChangeForm'
|
|
8
7
|
|
|
@@ -16,7 +15,7 @@ export default function SecurityProfilePage() {
|
|
|
16
15
|
<div className="space-y-4">
|
|
17
16
|
<MfaSettingsRedirect />
|
|
18
17
|
<InjectionSpot
|
|
19
|
-
spotId=
|
|
18
|
+
spotId="security.profile.sidebar"
|
|
20
19
|
context={{ section: 'sidebar' }}
|
|
21
20
|
/>
|
|
22
21
|
</div>
|
|
@@ -24,7 +23,7 @@ export default function SecurityProfilePage() {
|
|
|
24
23
|
|
|
25
24
|
<div className="mt-6">
|
|
26
25
|
<InjectionSpot
|
|
27
|
-
spotId=
|
|
26
|
+
spotId="security.profile.sections"
|
|
28
27
|
context={{ section: 'profile-sections' }}
|
|
29
28
|
/>
|
|
30
29
|
</div>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import { extensionPoints } from '@open-mercato/enterprise/modules/security/extension-points'
|
|
5
4
|
import Link from 'next/link'
|
|
6
5
|
import { useRouter } from 'next/navigation.js'
|
|
7
6
|
import type { ColumnDef, SortingState } from '@tanstack/react-table'
|
|
@@ -275,7 +274,7 @@ export default function SecurityEnforcementPage() {
|
|
|
275
274
|
onRefresh: () => void loadPolicies(),
|
|
276
275
|
isRefreshing: loading,
|
|
277
276
|
}}
|
|
278
|
-
perspective={{ tableId:
|
|
277
|
+
perspective={{ tableId: 'security.enforcement.list' }}
|
|
279
278
|
isLoading={loading}
|
|
280
279
|
error={error ? (
|
|
281
280
|
<div className="flex items-center justify-center gap-3">
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import { extensionPoints } from '@open-mercato/enterprise/modules/security/extension-points'
|
|
5
4
|
import Link from 'next/link'
|
|
6
5
|
import type { ColumnDef } from '@tanstack/react-table'
|
|
7
6
|
import { Pencil, Plus, ShieldAlert, Trash2 } from 'lucide-react'
|
|
@@ -258,7 +257,7 @@ function SecuritySudoPageInner() {
|
|
|
258
257
|
</Link>
|
|
259
258
|
</Button>
|
|
260
259
|
)}
|
|
261
|
-
perspective={{ tableId:
|
|
260
|
+
perspective={{ tableId: 'security.sudo.list' }}
|
|
262
261
|
isLoading={loading}
|
|
263
262
|
error={error ? <span>{error}</span> : null}
|
|
264
263
|
/>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import { extensionPoints } from '@open-mercato/enterprise/modules/security/extension-points'
|
|
5
4
|
import { useRouter } from 'next/navigation.js'
|
|
6
5
|
import type { ColumnDef, SortingState } from '@tanstack/react-table'
|
|
7
6
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
@@ -178,7 +177,7 @@ export default function SecurityUsersPage() {
|
|
|
178
177
|
onRefresh: () => void loadUsers(),
|
|
179
178
|
isRefreshing: loading,
|
|
180
179
|
}}
|
|
181
|
-
perspective={{ tableId:
|
|
180
|
+
perspective={{ tableId: 'security.users.list' }}
|
|
182
181
|
isLoading={loading}
|
|
183
182
|
error={error ? (
|
|
184
183
|
<div className="flex items-center justify-center gap-3">
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { AuthContext } from '@open-mercato/shared/lib/auth/server'
|
|
2
|
-
import { createLogger } from '@open-mercato/shared/lib/logger'
|
|
3
2
|
import { isEnforcementDeadlineOverdue } from '../services/MfaEnforcementService'
|
|
4
3
|
import { readSecurityModuleConfig } from './security-config'
|
|
5
4
|
|
|
6
5
|
const MFA_ENROLLMENT_PATH = '/backend/profile/security/mfa'
|
|
7
|
-
const logger = createLogger('security').child({ component: 'mfa-enforcement-redirect' })
|
|
8
6
|
|
|
9
7
|
type MfaComplianceResult = {
|
|
10
8
|
compliant: boolean
|
|
@@ -20,11 +18,6 @@ type ServiceContainerLike = {
|
|
|
20
18
|
resolve: (name: string) => unknown
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
type EnforcementServiceResolution = {
|
|
24
|
-
error?: unknown
|
|
25
|
-
service: MfaEnforcementServiceLike | null
|
|
26
|
-
}
|
|
27
|
-
|
|
28
21
|
function resolveDeadlineRedirectState(deadline?: Date): {
|
|
29
22
|
overdue: boolean
|
|
30
23
|
shouldRedirect: boolean
|
|
@@ -41,24 +34,9 @@ function isExemptPath(pathname: string): boolean {
|
|
|
41
34
|
return pathname.startsWith('/backend/profile/security')
|
|
42
35
|
}
|
|
43
36
|
|
|
44
|
-
function createEnrollmentRedirect(pathname: string, overdue = false): string {
|
|
45
|
-
const searchParams = new URLSearchParams({
|
|
46
|
-
redirect: pathname,
|
|
47
|
-
reason: 'mfa_enrollment_required',
|
|
48
|
-
})
|
|
49
|
-
if (overdue) {
|
|
50
|
-
searchParams.set('overdue', '1')
|
|
51
|
-
}
|
|
52
|
-
return `${MFA_ENROLLMENT_PATH}?${searchParams.toString()}`
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function canFailClosed(auth: NonNullable<AuthContext>): boolean {
|
|
56
|
-
return typeof auth.tenantId === 'string' && auth.tenantId.length > 0
|
|
57
|
-
}
|
|
58
|
-
|
|
59
37
|
function resolveEnforcementService(
|
|
60
38
|
container: ServiceContainerLike,
|
|
61
|
-
):
|
|
39
|
+
): MfaEnforcementServiceLike | null {
|
|
62
40
|
try {
|
|
63
41
|
const resolved = container.resolve('mfaEnforcementService')
|
|
64
42
|
if (
|
|
@@ -66,21 +44,11 @@ function resolveEnforcementService(
|
|
|
66
44
|
|| typeof resolved !== 'object'
|
|
67
45
|
|| typeof (resolved as { checkUserCompliance?: unknown }).checkUserCompliance !== 'function'
|
|
68
46
|
) {
|
|
69
|
-
|
|
70
|
-
? 'null'
|
|
71
|
-
: Array.isArray(resolved)
|
|
72
|
-
? 'array'
|
|
73
|
-
: typeof resolved === 'object'
|
|
74
|
-
? `object with keys: ${Object.keys(resolved).sort((left, right) => left.localeCompare(right)).join(', ') || '(none)'}`
|
|
75
|
-
: typeof resolved
|
|
76
|
-
return {
|
|
77
|
-
error: new TypeError(`[internal] Malformed MFA enforcement service (${receivedShape}); expected checkUserCompliance()`),
|
|
78
|
-
service: null,
|
|
79
|
-
}
|
|
47
|
+
return null
|
|
80
48
|
}
|
|
81
|
-
return
|
|
82
|
-
} catch
|
|
83
|
-
return
|
|
49
|
+
return resolved as MfaEnforcementServiceLike
|
|
50
|
+
} catch {
|
|
51
|
+
return null
|
|
84
52
|
}
|
|
85
53
|
}
|
|
86
54
|
|
|
@@ -96,27 +64,24 @@ export async function resolveMfaEnrollmentRedirect(args: {
|
|
|
96
64
|
if (readSecurityModuleConfig().mfa.emergencyBypass) return null
|
|
97
65
|
|
|
98
66
|
const enforcementService = resolveEnforcementService(container)
|
|
99
|
-
if (!enforcementService
|
|
100
|
-
if (!canFailClosed(auth)) return null
|
|
101
|
-
logger.error('Unable to resolve MFA enforcement service; redirecting to enrollment', {
|
|
102
|
-
err: enforcementService.error,
|
|
103
|
-
})
|
|
104
|
-
return createEnrollmentRedirect(pathname)
|
|
105
|
-
}
|
|
67
|
+
if (!enforcementService) return null
|
|
106
68
|
|
|
107
69
|
try {
|
|
108
|
-
const compliance = await enforcementService.
|
|
70
|
+
const compliance = await enforcementService.checkUserCompliance(auth.sub)
|
|
109
71
|
if (!compliance.enforced || compliance.compliant) return null
|
|
110
72
|
|
|
111
73
|
const deadlineState = resolveDeadlineRedirectState(compliance.deadline)
|
|
112
74
|
if (!deadlineState.shouldRedirect) return null
|
|
113
75
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
76
|
+
const searchParams = new URLSearchParams({
|
|
77
|
+
redirect: pathname,
|
|
78
|
+
reason: 'mfa_enrollment_required',
|
|
79
|
+
})
|
|
80
|
+
if (deadlineState.overdue) {
|
|
81
|
+
searchParams.set('overdue', '1')
|
|
119
82
|
}
|
|
83
|
+
return `${MFA_ENROLLMENT_PATH}?${searchParams.toString()}`
|
|
84
|
+
} catch {
|
|
120
85
|
return null
|
|
121
86
|
}
|
|
122
87
|
}
|
|
@@ -4,7 +4,7 @@ export const setup: ModuleSetupConfig = {
|
|
|
4
4
|
defaultRoleFeatures: {
|
|
5
5
|
superadmin: ['security.*'],
|
|
6
6
|
admin: ['security.*'],
|
|
7
|
-
employee: ['security.profile.view', 'security.profile.password', 'security.profile.manage'
|
|
7
|
+
employee: ['security.profile.view', 'security.profile.password', 'security.profile.manage'],
|
|
8
8
|
},
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -24,8 +24,8 @@ export class AccountLinkingService {
|
|
|
24
24
|
return existing
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
if (idpPayload.emailVerified
|
|
28
|
-
throw new EmailNotVerifiedError('IdP
|
|
27
|
+
if (idpPayload.emailVerified === false) {
|
|
28
|
+
throw new EmailNotVerifiedError('IdP explicitly reported email as unverified — cannot link or provision account')
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
const emailDomain = idpPayload.email.split('@')[1]?.toLowerCase()
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"record_locks.banner.active_users_label": "활성 사용자",
|
|
3
|
-
"record_locks.banner.contention_notice": "다른 사용자가 이 레코드를 편집 중에 열었습니다. 저장 시 충돌이 발생할 수 있습니다.",
|
|
4
|
-
"record_locks.banner.local_machine": "로컬 기기",
|
|
5
|
-
"record_locks.banner.locked_by_other": "이 레코드는 현재 다른 사용자가 잠그고 있습니다.",
|
|
6
|
-
"record_locks.banner.mine": "현재 이 레코드를 편집 중입니다.",
|
|
7
|
-
"record_locks.banner.optimistic_notice": "다른 사용자가 이 레코드를 편집하고 있습니다. 저장 시 충돌이 발생할 수 있습니다.",
|
|
8
|
-
"record_locks.banner.participants_notice": "여러 사용자가 현재 이 레코드에 있습니다.",
|
|
9
|
-
"record_locks.banner.same_user_session": "이 레코드는 이미 다른 세션에서 열려 있습니다.",
|
|
10
|
-
"record_locks.banner.take_over": "편집 권한 가져오기",
|
|
11
|
-
"record_locks.banner.take_over_pending": "가져오는 중...",
|
|
12
|
-
"record_locks.conflict.accept_incoming": "수신된 변경 사항 적용",
|
|
13
|
-
"record_locks.conflict.accept_incoming_failed": "수신된 변경 사항을 적용할 수 없습니다. 새로고침 후 다시 시도하세요.",
|
|
14
|
-
"record_locks.conflict.accept_mine": "내 변경 사항 유지",
|
|
15
|
-
"record_locks.conflict.cancel": "취소",
|
|
16
|
-
"record_locks.conflict.current_label": "현재",
|
|
17
|
-
"record_locks.conflict.description": "편집을 시작한 후 다른 사용자가 이 레코드를 변경했습니다.",
|
|
18
|
-
"record_locks.conflict.display_value": "표시 값",
|
|
19
|
-
"record_locks.conflict.empty_value": "(비어 있음)",
|
|
20
|
-
"record_locks.conflict.field": "필드",
|
|
21
|
-
"record_locks.conflict.incoming_label": "수신됨",
|
|
22
|
-
"record_locks.conflict.incoming_value": "수신된 값",
|
|
23
|
-
"record_locks.conflict.keep_editing": "계속 편집",
|
|
24
|
-
"record_locks.conflict.mine_value": "내 값",
|
|
25
|
-
"record_locks.conflict.no_field_details": "이 레코드에 대한 필드 수준 충돌 세부 정보를 사용할 수 없습니다. 계속하려면 해결 방법을 선택하세요.",
|
|
26
|
-
"record_locks.conflict.override_blocked_notice": "수신된 변경 사항을 재정의할 권한이 없어 내 버전을 유지할 수 없습니다.",
|
|
27
|
-
"record_locks.conflict.record_deleted_description": "편집하는 동안 다른 사용자가 이 레코드를 삭제했습니다. 예기치 않은 결과를 방지하기 위해 저장이 차단됩니다.",
|
|
28
|
-
"record_locks.conflict.record_deleted_title": "레코드가 삭제되었습니다",
|
|
29
|
-
"record_locks.conflict.refresh_page": "페이지 새로고침",
|
|
30
|
-
"record_locks.conflict.refresh_required": "충돌 세부 정보를 확인할 수 없습니다. 충돌 데이터를 새로고침하려면 다시 저장하세요.",
|
|
31
|
-
"record_locks.conflict.retry_save_after_accept_mine": "변경 사항을 적용하려면 다시 저장을 클릭하세요.",
|
|
32
|
-
"record_locks.conflict.title": "충돌이 감지되었습니다",
|
|
33
|
-
"record_locks.errors.acquire_failed": "레코드 잠금 상태를 불러오지 못했습니다.",
|
|
34
|
-
"record_locks.errors.force_release_failed": "편집 권한을 가져오지 못했습니다.",
|
|
35
|
-
"record_locks.errors.force_release_unavailable": "가져오기가 비활성화되었거나 잠금이 더 이상 활성 상태가 아니므로 강제 해제를 사용할 수 없습니다.",
|
|
36
|
-
"record_locks.notifications.actions.accept_incoming": "수신 내용 적용",
|
|
37
|
-
"record_locks.notifications.actions.accept_mine": "수신 내용 거부",
|
|
38
|
-
"record_locks.notifications.actions.see_incoming_changes": "수신된 변경 사항 보기",
|
|
39
|
-
"record_locks.notifications.actions.see_lock_contention": "레코드 열기",
|
|
40
|
-
"record_locks.notifications.conflict_detected.body": "저장 내용이 더 최근의 변경 사항과 충돌했습니다. 변경된 필드: {changedFields}.",
|
|
41
|
-
"record_locks.notifications.conflict_detected.title": "편집 충돌이 감지되었습니다",
|
|
42
|
-
"record_locks.notifications.conflict_resolved.body": "레코드 충돌이 해결되었습니다.",
|
|
43
|
-
"record_locks.notifications.conflict_resolved.title": "충돌이 해결되었습니다",
|
|
44
|
-
"record_locks.notifications.incoming_changes.body": "다른 사용자가 이 레코드를 업데이트했습니다. 변경된 필드: {changedFields}.",
|
|
45
|
-
"record_locks.notifications.incoming_changes.title": "수신된 변경 사항이 있습니다",
|
|
46
|
-
"record_locks.notifications.lock_contended.body": "다른 사용자가 현재 편집 중인 레코드를 열었습니다. 저장 시 충돌이 발생할 수 있습니다.",
|
|
47
|
-
"record_locks.notifications.lock_contended.title": "다른 사용자가 회원님의 레코드를 열었습니다",
|
|
48
|
-
"record_locks.notifications.lock_force_released.body": "다른 사용자가 회원님의 레코드 잠금을 강제로 해제했습니다.",
|
|
49
|
-
"record_locks.notifications.lock_force_released.title": "잠금이 강제로 해제되었습니다",
|
|
50
|
-
"record_locks.notifications.participant_joined.body": "다른 사용자가 편집 중에 이 레코드를 열었습니다.",
|
|
51
|
-
"record_locks.notifications.participant_joined.title": "새 참여자가 참여했습니다",
|
|
52
|
-
"record_locks.notifications.participant_left.body": "한 사용자가 이 레코드를 떠났습니다 (하트비트 만료).",
|
|
53
|
-
"record_locks.notifications.participant_left.title": "참여자가 떠났습니다",
|
|
54
|
-
"record_locks.notifications.record_deleted.body": "열어 두었던 레코드가 다른 사용자에 의해 삭제되었습니다.",
|
|
55
|
-
"record_locks.notifications.record_deleted.title": "열린 레코드가 삭제되었습니다",
|
|
56
|
-
"record_locks.settings.allow_force_unlock": "강제 잠금 해제 허용",
|
|
57
|
-
"record_locks.settings.allow_incoming_override": "수신된 변경 사항 재정의 허용",
|
|
58
|
-
"record_locks.settings.allow_incoming_override_hint": "충돌 시 자신의 버전을 유지하려면 역할이나 사용자 ACL에 record_locks.override_incoming 기능이 필요합니다.",
|
|
59
|
-
"record_locks.settings.allow_incoming_override_permissions_link": "권한 확인",
|
|
60
|
-
"record_locks.settings.description": "낙관적/비관적 잠금 및 충돌 처리를 구성합니다.",
|
|
61
|
-
"record_locks.settings.enabled": "레코드 잠금 활성화",
|
|
62
|
-
"record_locks.settings.enabled_resources": "활성화된 리소스",
|
|
63
|
-
"record_locks.settings.enabled_resources_hint": "제안 목록에서 선택하거나 커스텀 리소스 종류를 입력하세요.",
|
|
64
|
-
"record_locks.settings.enabled_resources_placeholder": "리소스 종류를 추가하고 Enter를 누르세요",
|
|
65
|
-
"record_locks.settings.heartbeat_seconds": "하트비트 간격 (초)",
|
|
66
|
-
"record_locks.settings.notify_on_conflict": "충돌 시 알림",
|
|
67
|
-
"record_locks.settings.save": "설정 저장",
|
|
68
|
-
"record_locks.settings.save_error": "설정 저장에 실패했습니다",
|
|
69
|
-
"record_locks.settings.saved": "설정이 저장되었습니다",
|
|
70
|
-
"record_locks.settings.strategy": "전략",
|
|
71
|
-
"record_locks.settings.strategy_help_optimistic": "여러 사용자가 동시에 편집할 수 있으며, 저장 시 충돌을 확인합니다.",
|
|
72
|
-
"record_locks.settings.strategy_help_pessimistic": "첫 번째 편집자가 잠금을 획득하고 해제될 때까지 동시 편집을 차단합니다.",
|
|
73
|
-
"record_locks.settings.strategy_optimistic": "낙관적",
|
|
74
|
-
"record_locks.settings.strategy_pessimistic": "비관적",
|
|
75
|
-
"record_locks.settings.timeout_seconds": "잠금 시간 초과 (초)",
|
|
76
|
-
"record_locks.settings.title": "레코드 잠금",
|
|
77
|
-
"record_locks.title": "레코드 잠금"
|
|
78
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { dataTableExtensionHost, defineModuleExtensionPoints, injectionExtensionHost } from "@open-mercato/shared/modules/widgets/extension-points";
|
|
2
|
-
const extensionPoints = defineModuleExtensionPoints({
|
|
3
|
-
moduleId: "security",
|
|
4
|
-
hosts: {
|
|
5
|
-
profileSidebar: injectionExtensionHost({ family: "detail", spotId: "security.profile.sidebar", supported: ["render-widget"], source: "backend/profile/security/page.tsx" }),
|
|
6
|
-
profileSections: injectionExtensionHost({ family: "detail", spotId: "security.profile.sections", supported: ["render-widget"], source: "backend/profile/security/page.tsx" }),
|
|
7
|
-
enforcementTable: dataTableExtensionHost({ tableId: "security.enforcement.list", source: "backend/security/enforcement/page.tsx" }),
|
|
8
|
-
sudoTable: dataTableExtensionHost({ tableId: "security.sudo.list", source: "backend/security/sudo/page.tsx" }),
|
|
9
|
-
usersTable: dataTableExtensionHost({ tableId: "security.users.list", source: "backend/security/users/page.tsx" })
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var extension_points_default = extensionPoints;
|
|
13
|
-
export {
|
|
14
|
-
extension_points_default as default,
|
|
15
|
-
extensionPoints
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=extension-points.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/modules/security/extension-points.ts"],
|
|
4
|
-
"sourcesContent": ["import { dataTableExtensionHost, defineModuleExtensionPoints, injectionExtensionHost } from '@open-mercato/shared/modules/widgets/extension-points'\n\nexport const extensionPoints = defineModuleExtensionPoints({\n moduleId: 'security',\n hosts: {\n profileSidebar: injectionExtensionHost({ family: 'detail', spotId: 'security.profile.sidebar', supported: ['render-widget'], source: 'backend/profile/security/page.tsx' }),\n profileSections: injectionExtensionHost({ family: 'detail', spotId: 'security.profile.sections', supported: ['render-widget'], source: 'backend/profile/security/page.tsx' }),\n enforcementTable: dataTableExtensionHost({ tableId: 'security.enforcement.list', source: 'backend/security/enforcement/page.tsx' }),\n sudoTable: dataTableExtensionHost({ tableId: 'security.sudo.list', source: 'backend/security/sudo/page.tsx' }),\n usersTable: dataTableExtensionHost({ tableId: 'security.users.list', source: 'backend/security/users/page.tsx' }),\n },\n})\n\nexport default extensionPoints\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,wBAAwB,6BAA6B,8BAA8B;AAErF,MAAM,kBAAkB,4BAA4B;AAAA,EACzD,UAAU;AAAA,EACV,OAAO;AAAA,IACL,gBAAgB,uBAAuB,EAAE,QAAQ,UAAU,QAAQ,4BAA4B,WAAW,CAAC,eAAe,GAAG,QAAQ,oCAAoC,CAAC;AAAA,IAC1K,iBAAiB,uBAAuB,EAAE,QAAQ,UAAU,QAAQ,6BAA6B,WAAW,CAAC,eAAe,GAAG,QAAQ,oCAAoC,CAAC;AAAA,IAC5K,kBAAkB,uBAAuB,EAAE,SAAS,6BAA6B,QAAQ,wCAAwC,CAAC;AAAA,IAClI,WAAW,uBAAuB,EAAE,SAAS,sBAAsB,QAAQ,iCAAiC,CAAC;AAAA,IAC7G,YAAY,uBAAuB,EAAE,SAAS,uBAAuB,QAAQ,kCAAkC,CAAC;AAAA,EAClH;AACF,CAAC;AAED,IAAO,2BAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|