strapi-plugin-oidc 1.5.2 → 1.6.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 +143 -26
- package/dist/admin/{index-DWm8oOJF.js → index-DTOcUHZi.js} +342 -177
- package/dist/admin/{index-Dz3WlTpL.mjs → index-DmJadA2p.mjs} +344 -179
- package/dist/admin/{index-Dzf0bJC1.mjs → index-P9HriRms.mjs} +31 -6
- package/dist/admin/{index-CqgjBmJ5.js → index-f3cmU_tE.js} +31 -6
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +647 -175
- package/dist/server/index.mjs +648 -176
- package/package.json +1 -1
|
@@ -49,9 +49,7 @@ const en = {
|
|
|
49
49
|
"roles.placeholder": "Select default role(s)",
|
|
50
50
|
"whitelist.title": "Whitelist",
|
|
51
51
|
"whitelist.error.unique": "Already registered email address.",
|
|
52
|
-
"whitelist.description": "Restrict OIDC authentication to specific email addresses
|
|
53
|
-
"whitelist.user_exists": "User already exists, matching existing role(s)",
|
|
54
|
-
"whitelist.users_exists": "Users already exist, matching existing role(s)",
|
|
52
|
+
"whitelist.description": "Restrict OIDC authentication to specific email addresses. Users receive roles from the default OIDC role mapping or their OIDC group.",
|
|
55
53
|
"alert.title.success": "Success",
|
|
56
54
|
"alert.title.error": "Error",
|
|
57
55
|
"alert.title.info": "Info",
|
|
@@ -92,7 +90,34 @@ const en = {
|
|
|
92
90
|
"unsaved.description": "You have unsaved changes that will be lost if you leave. Do you want to continue?",
|
|
93
91
|
"unsaved.confirm": "Leave",
|
|
94
92
|
"unsaved.cancel": "Stay",
|
|
95
|
-
"whitelist.table.roles.default": "(Default)"
|
|
93
|
+
"whitelist.table.roles.default": "(Default)",
|
|
94
|
+
"auditlog.title": "Audit Logs",
|
|
95
|
+
"auditlog.export": "Download",
|
|
96
|
+
"auditlog.table.timestamp": "Timestamp",
|
|
97
|
+
"auditlog.table.action": "Action",
|
|
98
|
+
"auditlog.table.email": "Email",
|
|
99
|
+
"auditlog.table.ip": "IP",
|
|
100
|
+
"auditlog.table.details": "Details",
|
|
101
|
+
"auditlog.table.empty": "No audit log entries",
|
|
102
|
+
"auditlog.clear": "Clear Logs",
|
|
103
|
+
"auditlog.clear.title": "Clear All Logs",
|
|
104
|
+
"auditlog.clear.description": "This will permanently delete all {count, plural, one {# audit log entry} other {# audit log entries}}. This action cannot be undone.",
|
|
105
|
+
"auditlog.clear.success": "Audit logs cleared",
|
|
106
|
+
"auditlog.clear.error": "Failed to clear audit logs",
|
|
107
|
+
"auditlog.export.error": "Failed to export audit logs",
|
|
108
|
+
"auditlog.action.login_success": "User successfully authenticated via OIDC and was granted access.",
|
|
109
|
+
"auditlog.action.user_created": "A new Strapi admin account was created for this user on their first OIDC login.",
|
|
110
|
+
"auditlog.action.logout": "User logged out and their OIDC session was ended.",
|
|
111
|
+
"auditlog.action.session_expired": "The OIDC access token had expired by the time the user logged out, so the provider session could not be terminated remotely.",
|
|
112
|
+
"auditlog.action.login_failure": "An unexpected error occurred during the OIDC login flow.",
|
|
113
|
+
"auditlog.action.missing_code": "The OIDC callback was received without an authorisation code. This may indicate a misconfigured provider or a tampered request.",
|
|
114
|
+
"auditlog.action.state_mismatch": "The state parameter in the callback did not match the one stored in the session. This may indicate a CSRF attempt or an expired login session.",
|
|
115
|
+
"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.",
|
|
116
|
+
"auditlog.action.token_exchange_failed": "The authorisation code could not be exchanged for tokens. The OIDC provider rejected the request.",
|
|
117
|
+
"auditlog.action.whitelist_rejected": "The user's email address is not on the whitelist. Access was denied.",
|
|
118
|
+
"user.missing_code": "Authorisation code was not received from the OIDC provider.",
|
|
119
|
+
"user.invalid_state": "State parameter mismatch. Please restart the login flow.",
|
|
120
|
+
"user.signInError": "Authentication failed. Please try again."
|
|
96
121
|
};
|
|
97
122
|
function getTrad(id) {
|
|
98
123
|
const pluginIdWithId = `${pluginId}.${id}`;
|
|
@@ -123,7 +148,7 @@ const index = {
|
|
|
123
148
|
defaultMessage: "Configuration"
|
|
124
149
|
},
|
|
125
150
|
Component: async () => {
|
|
126
|
-
return await import("./index-
|
|
151
|
+
return await import("./index-DmJadA2p.mjs");
|
|
127
152
|
},
|
|
128
153
|
permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
|
|
129
154
|
}
|
|
@@ -245,7 +270,7 @@ const index = {
|
|
|
245
270
|
if (locale === "en") {
|
|
246
271
|
return Promise.resolve({ data: transformKeys(en), locale });
|
|
247
272
|
}
|
|
248
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({}),
|
|
273
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({}), `../translations/locales/${locale}.json`, 4).then(({ default: data }) => ({ data: transformKeys(data), locale })).catch(() => ({ data: {}, locale }));
|
|
249
274
|
})
|
|
250
275
|
);
|
|
251
276
|
return importedTrads;
|
|
@@ -50,9 +50,7 @@ const en = {
|
|
|
50
50
|
"roles.placeholder": "Select default role(s)",
|
|
51
51
|
"whitelist.title": "Whitelist",
|
|
52
52
|
"whitelist.error.unique": "Already registered email address.",
|
|
53
|
-
"whitelist.description": "Restrict OIDC authentication to specific email addresses
|
|
54
|
-
"whitelist.user_exists": "User already exists, matching existing role(s)",
|
|
55
|
-
"whitelist.users_exists": "Users already exist, matching existing role(s)",
|
|
53
|
+
"whitelist.description": "Restrict OIDC authentication to specific email addresses. Users receive roles from the default OIDC role mapping or their OIDC group.",
|
|
56
54
|
"alert.title.success": "Success",
|
|
57
55
|
"alert.title.error": "Error",
|
|
58
56
|
"alert.title.info": "Info",
|
|
@@ -93,7 +91,34 @@ const en = {
|
|
|
93
91
|
"unsaved.description": "You have unsaved changes that will be lost if you leave. Do you want to continue?",
|
|
94
92
|
"unsaved.confirm": "Leave",
|
|
95
93
|
"unsaved.cancel": "Stay",
|
|
96
|
-
"whitelist.table.roles.default": "(Default)"
|
|
94
|
+
"whitelist.table.roles.default": "(Default)",
|
|
95
|
+
"auditlog.title": "Audit Logs",
|
|
96
|
+
"auditlog.export": "Download",
|
|
97
|
+
"auditlog.table.timestamp": "Timestamp",
|
|
98
|
+
"auditlog.table.action": "Action",
|
|
99
|
+
"auditlog.table.email": "Email",
|
|
100
|
+
"auditlog.table.ip": "IP",
|
|
101
|
+
"auditlog.table.details": "Details",
|
|
102
|
+
"auditlog.table.empty": "No audit log entries",
|
|
103
|
+
"auditlog.clear": "Clear Logs",
|
|
104
|
+
"auditlog.clear.title": "Clear All Logs",
|
|
105
|
+
"auditlog.clear.description": "This will permanently delete all {count, plural, one {# audit log entry} other {# audit log entries}}. This action cannot be undone.",
|
|
106
|
+
"auditlog.clear.success": "Audit logs cleared",
|
|
107
|
+
"auditlog.clear.error": "Failed to clear audit logs",
|
|
108
|
+
"auditlog.export.error": "Failed to export audit logs",
|
|
109
|
+
"auditlog.action.login_success": "User successfully authenticated via OIDC and was granted access.",
|
|
110
|
+
"auditlog.action.user_created": "A new Strapi admin account was created for this user on their first OIDC login.",
|
|
111
|
+
"auditlog.action.logout": "User logged out and their OIDC session was ended.",
|
|
112
|
+
"auditlog.action.session_expired": "The OIDC access token had expired by the time the user logged out, so the provider session could not be terminated remotely.",
|
|
113
|
+
"auditlog.action.login_failure": "An unexpected error occurred during the OIDC login flow.",
|
|
114
|
+
"auditlog.action.missing_code": "The OIDC callback was received without an authorisation code. This may indicate a misconfigured provider or a tampered request.",
|
|
115
|
+
"auditlog.action.state_mismatch": "The state parameter in the callback did not match the one stored in the session. This may indicate a CSRF attempt or an expired login session.",
|
|
116
|
+
"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.",
|
|
117
|
+
"auditlog.action.token_exchange_failed": "The authorisation code could not be exchanged for tokens. The OIDC provider rejected the request.",
|
|
118
|
+
"auditlog.action.whitelist_rejected": "The user's email address is not on the whitelist. Access was denied.",
|
|
119
|
+
"user.missing_code": "Authorisation code was not received from the OIDC provider.",
|
|
120
|
+
"user.invalid_state": "State parameter mismatch. Please restart the login flow.",
|
|
121
|
+
"user.signInError": "Authentication failed. Please try again."
|
|
97
122
|
};
|
|
98
123
|
function getTrad(id) {
|
|
99
124
|
const pluginIdWithId = `${pluginId}.${id}`;
|
|
@@ -124,7 +149,7 @@ const index = {
|
|
|
124
149
|
defaultMessage: "Configuration"
|
|
125
150
|
},
|
|
126
151
|
Component: async () => {
|
|
127
|
-
return await Promise.resolve().then(() => require("./index-
|
|
152
|
+
return await Promise.resolve().then(() => require("./index-DTOcUHZi.js"));
|
|
128
153
|
},
|
|
129
154
|
permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
|
|
130
155
|
}
|
|
@@ -246,7 +271,7 @@ const index = {
|
|
|
246
271
|
if (locale === "en") {
|
|
247
272
|
return Promise.resolve({ data: transformKeys(en), locale });
|
|
248
273
|
}
|
|
249
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({}),
|
|
274
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({}), `../translations/locales/${locale}.json`, 4).then(({ default: data }) => ({ data: transformKeys(data), locale })).catch(() => ({ data: {}, locale }));
|
|
250
275
|
})
|
|
251
276
|
);
|
|
252
277
|
return importedTrads;
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED