strapi-plugin-oidc 1.6.5 → 1.7.0
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/README.md +45 -15
- package/dist/admin/index-C2KZ4QxC.js +4381 -0
- package/dist/admin/{index-C2BnnDzh.js → index-DB7zjuHj.js} +23 -6
- package/dist/admin/{index-DgUClS5s.mjs → index-D_ZKgByO.mjs} +23 -6
- package/dist/admin/index-UvfJxIgI.mjs +4379 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +686 -272
- package/dist/server/index.mjs +686 -272
- package/package.json +3 -2
- package/dist/admin/index-HQ2uuypE.mjs +0 -841
- package/dist/admin/index-pWwCtdNu.js +0 -843
|
@@ -23,9 +23,6 @@ const pluginPkg = {
|
|
|
23
23
|
strapi
|
|
24
24
|
};
|
|
25
25
|
const pluginId = pluginPkg.name.replace(/^@strapi\/plugin-/i, "");
|
|
26
|
-
function getTranslation(id) {
|
|
27
|
-
return `${pluginId}.${id}`;
|
|
28
|
-
}
|
|
29
26
|
function Initializer({ setPlugin }) {
|
|
30
27
|
const ref = react.useRef();
|
|
31
28
|
ref.current = setPlugin;
|
|
@@ -45,6 +42,7 @@ const en = {
|
|
|
45
42
|
"page.save.error": "Update failed.",
|
|
46
43
|
"page.add": "Add",
|
|
47
44
|
"page.cancel": "Cancel",
|
|
45
|
+
"common.remove": "Remove {label}",
|
|
48
46
|
"page.ok": "OK",
|
|
49
47
|
"roles.title": "Default Role(s)",
|
|
50
48
|
"roles.placeholder": "Select default role(s)",
|
|
@@ -76,7 +74,7 @@ const en = {
|
|
|
76
74
|
"enforce.config.info": "Enforcement is controlled by the OIDC_ENFORCE config variable and cannot be changed here.",
|
|
77
75
|
"login.settings.title": "Login Settings",
|
|
78
76
|
"login.sso": "Login via SSO",
|
|
79
|
-
"
|
|
77
|
+
"pagination.total": "{count, plural, one {# entry} other {# entries}}",
|
|
80
78
|
"whitelist.import": "Import",
|
|
81
79
|
"whitelist.export": "Export",
|
|
82
80
|
"whitelist.delete.all.label": "Delete All",
|
|
@@ -104,6 +102,20 @@ const en = {
|
|
|
104
102
|
"auditlog.clear.success": "Audit logs cleared",
|
|
105
103
|
"auditlog.clear.error": "Failed to clear audit logs",
|
|
106
104
|
"auditlog.export.error": "Failed to export audit logs",
|
|
105
|
+
"auditlog.filters": "Filters",
|
|
106
|
+
"auditlog.filters.action": "Action",
|
|
107
|
+
"auditlog.filters.email": "Email",
|
|
108
|
+
"auditlog.filters.ip": "IP address",
|
|
109
|
+
"auditlog.filters.createdAt": "Date",
|
|
110
|
+
"auditlog.filters.clear": "Clear filters",
|
|
111
|
+
"auditlog.filters.empty": "No entries match the current filters",
|
|
112
|
+
"auditlog.calendar.prevMonth": "Previous month",
|
|
113
|
+
"auditlog.calendar.nextMonth": "Next month",
|
|
114
|
+
"auditlog.calendar.state.today": "today",
|
|
115
|
+
"auditlog.calendar.state.selected": "selected",
|
|
116
|
+
"auditlog.calendar.state.alreadyAdded": "already added",
|
|
117
|
+
"auditlog.calendar.state.future": "unavailable, future date",
|
|
118
|
+
"auditlog.calendar.dayWithState": "{date}, {state}",
|
|
107
119
|
"auditlog.action.login_success": "User successfully authenticated via OIDC and was granted access.",
|
|
108
120
|
"auditlog.action.user_created": "A new Strapi admin account was created for this user on their first OIDC login.",
|
|
109
121
|
"auditlog.action.logout": "User logged out and their OIDC session was ended.",
|
|
@@ -114,6 +126,11 @@ const en = {
|
|
|
114
126
|
"auditlog.action.nonce_mismatch": "The nonce in the ID token did not match the one generated at login. This may indicate a token replay attack.",
|
|
115
127
|
"auditlog.action.token_exchange_failed": "The authorisation code could not be exchanged for tokens. The OIDC provider rejected the request.",
|
|
116
128
|
"auditlog.action.whitelist_rejected": "The user's email address is not on the whitelist. Access was denied.",
|
|
129
|
+
"auth.page.authenticating.title": "Authenticating...",
|
|
130
|
+
"auth.page.authenticating.noscript.heading": "JavaScript Required",
|
|
131
|
+
"auth.page.authenticating.noscript.body": "JavaScript must be enabled for authentication to complete.",
|
|
132
|
+
"auth.page.error.title": "Authentication Failed",
|
|
133
|
+
"auth.page.error.returnToLogin": "Return to Login",
|
|
117
134
|
"user.missing_code": "Authorisation code was not received from the OIDC provider.",
|
|
118
135
|
"user.invalid_state": "State parameter mismatch. Please restart the login flow.",
|
|
119
136
|
"user.signInError": "Authentication failed. Please try again.",
|
|
@@ -149,7 +166,7 @@ const index = {
|
|
|
149
166
|
defaultMessage: "Configuration"
|
|
150
167
|
},
|
|
151
168
|
Component: async () => {
|
|
152
|
-
return await Promise.resolve().then(() => require("./index-
|
|
169
|
+
return await Promise.resolve().then(() => require("./index-C2KZ4QxC.js"));
|
|
153
170
|
},
|
|
154
171
|
permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
|
|
155
172
|
}
|
|
@@ -262,7 +279,7 @@ const index = {
|
|
|
262
279
|
async registerTrads({ locales }) {
|
|
263
280
|
const transformKeys = (data) => Object.fromEntries(
|
|
264
281
|
Object.entries(data).map(([key, value]) => [
|
|
265
|
-
key.startsWith("global.") ? key :
|
|
282
|
+
key.startsWith("global.") ? key : `${pluginId}.${key}`,
|
|
266
283
|
value
|
|
267
284
|
])
|
|
268
285
|
);
|
|
@@ -22,9 +22,6 @@ const pluginPkg = {
|
|
|
22
22
|
strapi
|
|
23
23
|
};
|
|
24
24
|
const pluginId = pluginPkg.name.replace(/^@strapi\/plugin-/i, "");
|
|
25
|
-
function getTranslation(id) {
|
|
26
|
-
return `${pluginId}.${id}`;
|
|
27
|
-
}
|
|
28
25
|
function Initializer({ setPlugin }) {
|
|
29
26
|
const ref = useRef();
|
|
30
27
|
ref.current = setPlugin;
|
|
@@ -44,6 +41,7 @@ const en = {
|
|
|
44
41
|
"page.save.error": "Update failed.",
|
|
45
42
|
"page.add": "Add",
|
|
46
43
|
"page.cancel": "Cancel",
|
|
44
|
+
"common.remove": "Remove {label}",
|
|
47
45
|
"page.ok": "OK",
|
|
48
46
|
"roles.title": "Default Role(s)",
|
|
49
47
|
"roles.placeholder": "Select default role(s)",
|
|
@@ -75,7 +73,7 @@ const en = {
|
|
|
75
73
|
"enforce.config.info": "Enforcement is controlled by the OIDC_ENFORCE config variable and cannot be changed here.",
|
|
76
74
|
"login.settings.title": "Login Settings",
|
|
77
75
|
"login.sso": "Login via SSO",
|
|
78
|
-
"
|
|
76
|
+
"pagination.total": "{count, plural, one {# entry} other {# entries}}",
|
|
79
77
|
"whitelist.import": "Import",
|
|
80
78
|
"whitelist.export": "Export",
|
|
81
79
|
"whitelist.delete.all.label": "Delete All",
|
|
@@ -103,6 +101,20 @@ const en = {
|
|
|
103
101
|
"auditlog.clear.success": "Audit logs cleared",
|
|
104
102
|
"auditlog.clear.error": "Failed to clear audit logs",
|
|
105
103
|
"auditlog.export.error": "Failed to export audit logs",
|
|
104
|
+
"auditlog.filters": "Filters",
|
|
105
|
+
"auditlog.filters.action": "Action",
|
|
106
|
+
"auditlog.filters.email": "Email",
|
|
107
|
+
"auditlog.filters.ip": "IP address",
|
|
108
|
+
"auditlog.filters.createdAt": "Date",
|
|
109
|
+
"auditlog.filters.clear": "Clear filters",
|
|
110
|
+
"auditlog.filters.empty": "No entries match the current filters",
|
|
111
|
+
"auditlog.calendar.prevMonth": "Previous month",
|
|
112
|
+
"auditlog.calendar.nextMonth": "Next month",
|
|
113
|
+
"auditlog.calendar.state.today": "today",
|
|
114
|
+
"auditlog.calendar.state.selected": "selected",
|
|
115
|
+
"auditlog.calendar.state.alreadyAdded": "already added",
|
|
116
|
+
"auditlog.calendar.state.future": "unavailable, future date",
|
|
117
|
+
"auditlog.calendar.dayWithState": "{date}, {state}",
|
|
106
118
|
"auditlog.action.login_success": "User successfully authenticated via OIDC and was granted access.",
|
|
107
119
|
"auditlog.action.user_created": "A new Strapi admin account was created for this user on their first OIDC login.",
|
|
108
120
|
"auditlog.action.logout": "User logged out and their OIDC session was ended.",
|
|
@@ -113,6 +125,11 @@ const en = {
|
|
|
113
125
|
"auditlog.action.nonce_mismatch": "The nonce in the ID token did not match the one generated at login. This may indicate a token replay attack.",
|
|
114
126
|
"auditlog.action.token_exchange_failed": "The authorisation code could not be exchanged for tokens. The OIDC provider rejected the request.",
|
|
115
127
|
"auditlog.action.whitelist_rejected": "The user's email address is not on the whitelist. Access was denied.",
|
|
128
|
+
"auth.page.authenticating.title": "Authenticating...",
|
|
129
|
+
"auth.page.authenticating.noscript.heading": "JavaScript Required",
|
|
130
|
+
"auth.page.authenticating.noscript.body": "JavaScript must be enabled for authentication to complete.",
|
|
131
|
+
"auth.page.error.title": "Authentication Failed",
|
|
132
|
+
"auth.page.error.returnToLogin": "Return to Login",
|
|
116
133
|
"user.missing_code": "Authorisation code was not received from the OIDC provider.",
|
|
117
134
|
"user.invalid_state": "State parameter mismatch. Please restart the login flow.",
|
|
118
135
|
"user.signInError": "Authentication failed. Please try again.",
|
|
@@ -148,7 +165,7 @@ const index = {
|
|
|
148
165
|
defaultMessage: "Configuration"
|
|
149
166
|
},
|
|
150
167
|
Component: async () => {
|
|
151
|
-
return await import("./index-
|
|
168
|
+
return await import("./index-UvfJxIgI.mjs");
|
|
152
169
|
},
|
|
153
170
|
permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
|
|
154
171
|
}
|
|
@@ -261,7 +278,7 @@ const index = {
|
|
|
261
278
|
async registerTrads({ locales }) {
|
|
262
279
|
const transformKeys = (data) => Object.fromEntries(
|
|
263
280
|
Object.entries(data).map(([key, value]) => [
|
|
264
|
-
key.startsWith("global.") ? key :
|
|
281
|
+
key.startsWith("global.") ? key : `${pluginId}.${key}`,
|
|
265
282
|
value
|
|
266
283
|
])
|
|
267
284
|
);
|