strapi-plugin-oidc 1.9.1 → 1.9.3
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/dist/admin/{index-C5fI9GEC.js → index-BUuwz71P.js} +10 -12
- package/dist/admin/{index-D0ORg9LL.mjs → index-CUVEK5GT.mjs} +10 -12
- package/dist/admin/{index-BJjdJ_L0.js → index-F7EShzfg.js} +7 -7
- package/dist/admin/{index-YcZbHa90.mjs → index-vkwBXPXn.mjs} +7 -7
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +863 -917
- package/dist/server/index.mjs +863 -917
- package/package.json +1 -1
|
@@ -76,10 +76,10 @@ function LogoutOverlay() {
|
|
|
76
76
|
}
|
|
77
77
|
const en = {
|
|
78
78
|
"global.plugins.strapi-plugin-oidc": "OIDC Plugin",
|
|
79
|
-
"page.title": "Configure OIDC
|
|
79
|
+
"page.title": "Configure Admin OIDC Login Settings and View Logs",
|
|
80
80
|
"roles.notes": "Select the default role(s) assigned to new users upon their first login. This setting does not affect existing users.",
|
|
81
|
-
"page.save": "Save
|
|
82
|
-
"page.save.success": "
|
|
81
|
+
"page.save": "Save changes",
|
|
82
|
+
"page.save.success": "Settings updated",
|
|
83
83
|
"page.save.error": "Update failed.",
|
|
84
84
|
"page.add": "Add",
|
|
85
85
|
"page.cancel": "Cancel",
|
|
@@ -98,7 +98,7 @@ const en = {
|
|
|
98
98
|
"pagination.next": "Go to next page",
|
|
99
99
|
"whitelist.table.no": "No.",
|
|
100
100
|
"whitelist.table.email": "Email",
|
|
101
|
-
"whitelist.table.created": "Created
|
|
101
|
+
"whitelist.table.created": "Created at",
|
|
102
102
|
"whitelist.delete.title": "Confirmation",
|
|
103
103
|
"whitelist.delete.description": "Are you sure you want to delete:",
|
|
104
104
|
"whitelist.delete.note": "This will not delete the user account in Strapi.",
|
|
@@ -117,10 +117,10 @@ const en = {
|
|
|
117
117
|
"login.sso": "Login via SSO",
|
|
118
118
|
"pagination.total": "{count, plural, one {# entry} other {# entries}}",
|
|
119
119
|
"whitelist.import": "Import",
|
|
120
|
-
"
|
|
121
|
-
"
|
|
120
|
+
"button.export": "Export",
|
|
121
|
+
"button.deleteAll": "Delete all",
|
|
122
122
|
"whitelist.delete.all.title": "Delete All Entries",
|
|
123
|
-
"whitelist.delete.all.description": "This will permanently remove
|
|
123
|
+
"whitelist.delete.all.description": "This will permanently remove {count, plural, one {# entry} other {# entries}} from the whitelist. Unsaved changes will be lost.",
|
|
124
124
|
"whitelist.import.error": "Invalid file — expected a JSON array of objects with an email field.",
|
|
125
125
|
"whitelist.import.success": "Imported {count, plural, one {# new entry} other {# new entries}}.",
|
|
126
126
|
"whitelist.import.none": "No new entries — all emails are already in the whitelist.",
|
|
@@ -129,15 +129,13 @@ const en = {
|
|
|
129
129
|
"unsaved.confirm": "Leave",
|
|
130
130
|
"unsaved.cancel": "Stay",
|
|
131
131
|
"auditlog.title": "Audit Logs",
|
|
132
|
-
"auditlog.export": "Download",
|
|
133
132
|
"auditlog.table.timestamp": "Timestamp",
|
|
134
133
|
"auditlog.table.action": "Action",
|
|
135
134
|
"auditlog.table.email": "Email",
|
|
136
135
|
"auditlog.table.ip": "IP",
|
|
137
136
|
"auditlog.table.details": "Details",
|
|
138
137
|
"auditlog.table.empty": "No audit log entries",
|
|
139
|
-
"auditlog.clear": "
|
|
140
|
-
"auditlog.clear.title": "Clear All Logs",
|
|
138
|
+
"auditlog.clear.title": "Delete All Logs",
|
|
141
139
|
"auditlog.clear.description": "This will permanently delete all {count, plural, one {# audit log entry} other {# audit log entries}}. This action cannot be undone.",
|
|
142
140
|
"auditlog.clear.success": "Audit logs cleared",
|
|
143
141
|
"auditlog.clear.error": "Failed to clear audit logs",
|
|
@@ -172,7 +170,7 @@ const en = {
|
|
|
172
170
|
"auth.page.authenticating.noscript.heading": "JavaScript Required",
|
|
173
171
|
"auth.page.authenticating.noscript.body": "JavaScript must be enabled for authentication to complete.",
|
|
174
172
|
"auth.page.error.title": "Authentication Failed",
|
|
175
|
-
"auth.page.error.returnToLogin": "Return to
|
|
173
|
+
"auth.page.error.returnToLogin": "Return to login",
|
|
176
174
|
"user.missing_code": "Authorisation code was not received from the OIDC provider.",
|
|
177
175
|
"user.invalid_state": "State parameter mismatch. Please restart the login flow.",
|
|
178
176
|
"user.signInError": "Authentication failed. Please try again.",
|
|
@@ -213,7 +211,7 @@ const index = {
|
|
|
213
211
|
id: "settings.configuration",
|
|
214
212
|
defaultMessage: "Configuration"
|
|
215
213
|
},
|
|
216
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
214
|
+
Component: () => Promise.resolve().then(() => require("./index-F7EShzfg.js")),
|
|
217
215
|
permissions: [{ action: PERMISSIONS.READ, subject: null }]
|
|
218
216
|
};
|
|
219
217
|
app.addSettingsLink(
|
|
@@ -73,10 +73,10 @@ function LogoutOverlay() {
|
|
|
73
73
|
}
|
|
74
74
|
const en = {
|
|
75
75
|
"global.plugins.strapi-plugin-oidc": "OIDC Plugin",
|
|
76
|
-
"page.title": "Configure OIDC
|
|
76
|
+
"page.title": "Configure Admin OIDC Login Settings and View Logs",
|
|
77
77
|
"roles.notes": "Select the default role(s) assigned to new users upon their first login. This setting does not affect existing users.",
|
|
78
|
-
"page.save": "Save
|
|
79
|
-
"page.save.success": "
|
|
78
|
+
"page.save": "Save changes",
|
|
79
|
+
"page.save.success": "Settings updated",
|
|
80
80
|
"page.save.error": "Update failed.",
|
|
81
81
|
"page.add": "Add",
|
|
82
82
|
"page.cancel": "Cancel",
|
|
@@ -95,7 +95,7 @@ const en = {
|
|
|
95
95
|
"pagination.next": "Go to next page",
|
|
96
96
|
"whitelist.table.no": "No.",
|
|
97
97
|
"whitelist.table.email": "Email",
|
|
98
|
-
"whitelist.table.created": "Created
|
|
98
|
+
"whitelist.table.created": "Created at",
|
|
99
99
|
"whitelist.delete.title": "Confirmation",
|
|
100
100
|
"whitelist.delete.description": "Are you sure you want to delete:",
|
|
101
101
|
"whitelist.delete.note": "This will not delete the user account in Strapi.",
|
|
@@ -114,10 +114,10 @@ const en = {
|
|
|
114
114
|
"login.sso": "Login via SSO",
|
|
115
115
|
"pagination.total": "{count, plural, one {# entry} other {# entries}}",
|
|
116
116
|
"whitelist.import": "Import",
|
|
117
|
-
"
|
|
118
|
-
"
|
|
117
|
+
"button.export": "Export",
|
|
118
|
+
"button.deleteAll": "Delete all",
|
|
119
119
|
"whitelist.delete.all.title": "Delete All Entries",
|
|
120
|
-
"whitelist.delete.all.description": "This will permanently remove
|
|
120
|
+
"whitelist.delete.all.description": "This will permanently remove {count, plural, one {# entry} other {# entries}} from the whitelist. Unsaved changes will be lost.",
|
|
121
121
|
"whitelist.import.error": "Invalid file — expected a JSON array of objects with an email field.",
|
|
122
122
|
"whitelist.import.success": "Imported {count, plural, one {# new entry} other {# new entries}}.",
|
|
123
123
|
"whitelist.import.none": "No new entries — all emails are already in the whitelist.",
|
|
@@ -126,15 +126,13 @@ const en = {
|
|
|
126
126
|
"unsaved.confirm": "Leave",
|
|
127
127
|
"unsaved.cancel": "Stay",
|
|
128
128
|
"auditlog.title": "Audit Logs",
|
|
129
|
-
"auditlog.export": "Download",
|
|
130
129
|
"auditlog.table.timestamp": "Timestamp",
|
|
131
130
|
"auditlog.table.action": "Action",
|
|
132
131
|
"auditlog.table.email": "Email",
|
|
133
132
|
"auditlog.table.ip": "IP",
|
|
134
133
|
"auditlog.table.details": "Details",
|
|
135
134
|
"auditlog.table.empty": "No audit log entries",
|
|
136
|
-
"auditlog.clear": "
|
|
137
|
-
"auditlog.clear.title": "Clear All Logs",
|
|
135
|
+
"auditlog.clear.title": "Delete All Logs",
|
|
138
136
|
"auditlog.clear.description": "This will permanently delete all {count, plural, one {# audit log entry} other {# audit log entries}}. This action cannot be undone.",
|
|
139
137
|
"auditlog.clear.success": "Audit logs cleared",
|
|
140
138
|
"auditlog.clear.error": "Failed to clear audit logs",
|
|
@@ -169,7 +167,7 @@ const en = {
|
|
|
169
167
|
"auth.page.authenticating.noscript.heading": "JavaScript Required",
|
|
170
168
|
"auth.page.authenticating.noscript.body": "JavaScript must be enabled for authentication to complete.",
|
|
171
169
|
"auth.page.error.title": "Authentication Failed",
|
|
172
|
-
"auth.page.error.returnToLogin": "Return to
|
|
170
|
+
"auth.page.error.returnToLogin": "Return to login",
|
|
173
171
|
"user.missing_code": "Authorisation code was not received from the OIDC provider.",
|
|
174
172
|
"user.invalid_state": "State parameter mismatch. Please restart the login flow.",
|
|
175
173
|
"user.signInError": "Authentication failed. Please try again.",
|
|
@@ -210,7 +208,7 @@ const index = {
|
|
|
210
208
|
id: "settings.configuration",
|
|
211
209
|
defaultMessage: "Configuration"
|
|
212
210
|
},
|
|
213
|
-
Component: () => import("./index-
|
|
211
|
+
Component: () => import("./index-vkwBXPXn.mjs"),
|
|
214
212
|
permissions: [{ action: PERMISSIONS.READ, subject: null }]
|
|
215
213
|
};
|
|
216
214
|
app.addSettingsLink(
|
|
@@ -7,7 +7,7 @@ const React = require("react");
|
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
const reactIntl = require("react-intl");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-BUuwz71P.js");
|
|
11
11
|
const styled = require("styled-components");
|
|
12
12
|
const lucideReact = require("lucide-react");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -968,7 +968,7 @@ function Whitelist({
|
|
|
968
968
|
startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Download, {}),
|
|
969
969
|
onClick: onExport,
|
|
970
970
|
disabled: users.length === 0,
|
|
971
|
-
children: formatMessage(index.getTrad("
|
|
971
|
+
children: formatMessage(index.getTrad("button.export"))
|
|
972
972
|
}
|
|
973
973
|
),
|
|
974
974
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1001,14 +1001,14 @@ function Whitelist({
|
|
|
1001
1001
|
variant: "danger-light",
|
|
1002
1002
|
startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Trash, {}),
|
|
1003
1003
|
disabled: users.length === 0,
|
|
1004
|
-
children: formatMessage(index.getTrad("
|
|
1004
|
+
children: formatMessage(index.getTrad("button.deleteAll"))
|
|
1005
1005
|
}
|
|
1006
1006
|
),
|
|
1007
1007
|
title: formatMessage(index.getTrad("whitelist.delete.all.title")),
|
|
1008
1008
|
body: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "neutral800", textAlign: "center", children: formatMessage(index.getTrad("whitelist.delete.all.description"), {
|
|
1009
1009
|
count: users.length
|
|
1010
1010
|
}) }) }),
|
|
1011
|
-
confirmLabel: formatMessage(index.getTrad("
|
|
1011
|
+
confirmLabel: formatMessage(index.getTrad("button.deleteAll")),
|
|
1012
1012
|
onConfirm: onDeleteAll
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
@@ -3912,7 +3912,7 @@ function AuditLog({ title } = {}) {
|
|
|
3912
3912
|
startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Download, {}),
|
|
3913
3913
|
onClick: handleExport,
|
|
3914
3914
|
disabled: pagination.total === 0,
|
|
3915
|
-
children: formatMessage(index.getTrad("
|
|
3915
|
+
children: formatMessage(index.getTrad("button.export"))
|
|
3916
3916
|
}
|
|
3917
3917
|
),
|
|
3918
3918
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3925,14 +3925,14 @@ function AuditLog({ title } = {}) {
|
|
|
3925
3925
|
variant: "danger-light",
|
|
3926
3926
|
startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Trash, {}),
|
|
3927
3927
|
disabled: pagination.total === 0,
|
|
3928
|
-
children: formatMessage(index.getTrad("
|
|
3928
|
+
children: formatMessage(index.getTrad("button.deleteAll"))
|
|
3929
3929
|
}
|
|
3930
3930
|
),
|
|
3931
3931
|
title: formatMessage(index.getTrad("auditlog.clear.title")),
|
|
3932
3932
|
body: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "neutral800", textAlign: "center", children: formatMessage(index.getTrad("auditlog.clear.description"), {
|
|
3933
3933
|
count: pagination.total
|
|
3934
3934
|
}) }) }),
|
|
3935
|
-
confirmLabel: formatMessage(index.getTrad("
|
|
3935
|
+
confirmLabel: formatMessage(index.getTrad("button.deleteAll")),
|
|
3936
3936
|
onConfirm: handleClearAll
|
|
3937
3937
|
}
|
|
3938
3938
|
)
|
|
@@ -5,7 +5,7 @@ import { useState, useRef, useId, useEffect, useCallback, useReducer, useMemo, m
|
|
|
5
5
|
import { Typography, Flex, Box, MultiSelect, MultiSelectOption, Button, Dialog, Table, Pagination, PreviousLink, NextLink, PageLink, Field, Divider, Thead, Tr, Th, Tbody, Td, IconButton, Loader, Tooltip, Alert } from "@strapi/design-system";
|
|
6
6
|
import { Cross, WarningCircle, Plus, Download, Upload, Trash, Calendar, Mail, Information } from "@strapi/icons";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import { g as getTrad, E as EMAIL_REGEX, e as en, A as AUDIT_LOG_DEFAULTS, U as UI_DEFAULTS } from "./index-
|
|
8
|
+
import { g as getTrad, E as EMAIL_REGEX, e as en, A as AUDIT_LOG_DEFAULTS, U as UI_DEFAULTS } from "./index-CUVEK5GT.mjs";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
import { Filter, ClipboardList, Server } from "lucide-react";
|
|
11
11
|
function Role({ oidcRoles, roles, onChangeRole }) {
|
|
@@ -964,7 +964,7 @@ function Whitelist({
|
|
|
964
964
|
startIcon: /* @__PURE__ */ jsx(Download, {}),
|
|
965
965
|
onClick: onExport,
|
|
966
966
|
disabled: users.length === 0,
|
|
967
|
-
children: formatMessage(getTrad("
|
|
967
|
+
children: formatMessage(getTrad("button.export"))
|
|
968
968
|
}
|
|
969
969
|
),
|
|
970
970
|
/* @__PURE__ */ jsx(
|
|
@@ -997,14 +997,14 @@ function Whitelist({
|
|
|
997
997
|
variant: "danger-light",
|
|
998
998
|
startIcon: /* @__PURE__ */ jsx(Trash, {}),
|
|
999
999
|
disabled: users.length === 0,
|
|
1000
|
-
children: formatMessage(getTrad("
|
|
1000
|
+
children: formatMessage(getTrad("button.deleteAll"))
|
|
1001
1001
|
}
|
|
1002
1002
|
),
|
|
1003
1003
|
title: formatMessage(getTrad("whitelist.delete.all.title")),
|
|
1004
1004
|
body: /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", textAlign: "center", children: formatMessage(getTrad("whitelist.delete.all.description"), {
|
|
1005
1005
|
count: users.length
|
|
1006
1006
|
}) }) }),
|
|
1007
|
-
confirmLabel: formatMessage(getTrad("
|
|
1007
|
+
confirmLabel: formatMessage(getTrad("button.deleteAll")),
|
|
1008
1008
|
onConfirm: onDeleteAll
|
|
1009
1009
|
}
|
|
1010
1010
|
)
|
|
@@ -3908,7 +3908,7 @@ function AuditLog({ title } = {}) {
|
|
|
3908
3908
|
startIcon: /* @__PURE__ */ jsx(Download, {}),
|
|
3909
3909
|
onClick: handleExport,
|
|
3910
3910
|
disabled: pagination.total === 0,
|
|
3911
|
-
children: formatMessage(getTrad("
|
|
3911
|
+
children: formatMessage(getTrad("button.export"))
|
|
3912
3912
|
}
|
|
3913
3913
|
),
|
|
3914
3914
|
/* @__PURE__ */ jsx(
|
|
@@ -3921,14 +3921,14 @@ function AuditLog({ title } = {}) {
|
|
|
3921
3921
|
variant: "danger-light",
|
|
3922
3922
|
startIcon: /* @__PURE__ */ jsx(Trash, {}),
|
|
3923
3923
|
disabled: pagination.total === 0,
|
|
3924
|
-
children: formatMessage(getTrad("
|
|
3924
|
+
children: formatMessage(getTrad("button.deleteAll"))
|
|
3925
3925
|
}
|
|
3926
3926
|
),
|
|
3927
3927
|
title: formatMessage(getTrad("auditlog.clear.title")),
|
|
3928
3928
|
body: /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", textAlign: "center", children: formatMessage(getTrad("auditlog.clear.description"), {
|
|
3929
3929
|
count: pagination.total
|
|
3930
3930
|
}) }) }),
|
|
3931
|
-
confirmLabel: formatMessage(getTrad("
|
|
3931
|
+
confirmLabel: formatMessage(getTrad("button.deleteAll")),
|
|
3932
3932
|
onConfirm: handleClearAll
|
|
3933
3933
|
}
|
|
3934
3934
|
)
|
package/dist/admin/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BUuwz71P.js");
|
|
4
4
|
require("react");
|
|
5
5
|
require("react-dom/client");
|
|
6
6
|
exports.default = index.index;
|
package/dist/admin/index.mjs
CHANGED