strapi-plugin-oidc 1.10.4 → 1.10.6
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-DgrNKY9Y.js → index-BlaayM2r.js} +51 -27
- package/dist/admin/{index-D0Q_r3J6.mjs → index-BzNqVadE.mjs} +1 -1
- package/dist/admin/{index-SjMPr_u2.mjs → index-D7TfdEp2.mjs} +51 -27
- package/dist/admin/{index-COhAwRD-.js → index-pRgysDzV.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +4 -4
|
@@ -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-pRgysDzV.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 };
|
|
@@ -3260,7 +3260,7 @@ function requireStringify() {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
if (obj === null) {
|
|
3262
3262
|
if (strictNullHandling) {
|
|
3263
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
3263
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
|
|
3264
3264
|
}
|
|
3265
3265
|
obj = "";
|
|
3266
3266
|
}
|
|
@@ -3278,7 +3278,9 @@ function requireStringify() {
|
|
|
3278
3278
|
var objKeys;
|
|
3279
3279
|
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
3280
3280
|
if (encodeValuesOnly && encoder) {
|
|
3281
|
-
obj = utils2.maybeMap(obj,
|
|
3281
|
+
obj = utils2.maybeMap(obj, function(v) {
|
|
3282
|
+
return v == null ? v : encoder(v);
|
|
3283
|
+
});
|
|
3282
3284
|
}
|
|
3283
3285
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
3284
3286
|
} else if (isArray(filter)) {
|
|
@@ -3416,6 +3418,9 @@ function requireStringify() {
|
|
|
3416
3418
|
var sideChannel2 = getSideChannel();
|
|
3417
3419
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
3418
3420
|
var key = objKeys[i];
|
|
3421
|
+
if (typeof key === "undefined" || key === null) {
|
|
3422
|
+
continue;
|
|
3423
|
+
}
|
|
3419
3424
|
var value = obj[key];
|
|
3420
3425
|
if (options.skipNulls && value === null) {
|
|
3421
3426
|
continue;
|
|
@@ -3445,9 +3450,9 @@ function requireStringify() {
|
|
|
3445
3450
|
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
3446
3451
|
if (options.charsetSentinel) {
|
|
3447
3452
|
if (options.charset === "iso-8859-1") {
|
|
3448
|
-
prefix += "utf8=%26%2310003%3B
|
|
3453
|
+
prefix += "utf8=%26%2310003%3B" + options.delimiter;
|
|
3449
3454
|
} else {
|
|
3450
|
-
prefix += "utf8=%E2%9C%93
|
|
3455
|
+
prefix += "utf8=%E2%9C%93" + options.delimiter;
|
|
3451
3456
|
}
|
|
3452
3457
|
}
|
|
3453
3458
|
return joined.length > 0 ? prefix + joined : "";
|
|
@@ -3509,9 +3514,9 @@ function requireParse() {
|
|
|
3509
3514
|
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
3510
3515
|
var parts = cleanStr.split(
|
|
3511
3516
|
options.delimiter,
|
|
3512
|
-
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
3517
|
+
options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
|
|
3513
3518
|
);
|
|
3514
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
3519
|
+
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
|
|
3515
3520
|
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
3516
3521
|
}
|
|
3517
3522
|
var skipIndex = -1;
|
|
@@ -3630,8 +3635,8 @@ function requireParse() {
|
|
|
3630
3635
|
}
|
|
3631
3636
|
return leaf;
|
|
3632
3637
|
};
|
|
3633
|
-
var splitKeyIntoSegments = function splitKeyIntoSegments2(
|
|
3634
|
-
var key = options.allowDots ?
|
|
3638
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments2(originalKey, options) {
|
|
3639
|
+
var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
|
|
3635
3640
|
if (options.depth <= 0) {
|
|
3636
3641
|
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
3637
3642
|
if (!options.allowPrototypes) {
|
|
@@ -3640,37 +3645,56 @@ function requireParse() {
|
|
|
3640
3645
|
}
|
|
3641
3646
|
return [key];
|
|
3642
3647
|
}
|
|
3643
|
-
var
|
|
3644
|
-
var
|
|
3645
|
-
var
|
|
3646
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
3647
|
-
var keys = [];
|
|
3648
|
+
var segments = [];
|
|
3649
|
+
var first = key.indexOf("[");
|
|
3650
|
+
var parent = first >= 0 ? key.slice(0, first) : key;
|
|
3648
3651
|
if (parent) {
|
|
3649
3652
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
3650
3653
|
if (!options.allowPrototypes) {
|
|
3651
3654
|
return;
|
|
3652
3655
|
}
|
|
3653
3656
|
}
|
|
3654
|
-
|
|
3655
|
-
}
|
|
3656
|
-
var
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3657
|
+
segments[segments.length] = parent;
|
|
3658
|
+
}
|
|
3659
|
+
var n = key.length;
|
|
3660
|
+
var open = first;
|
|
3661
|
+
var collected = 0;
|
|
3662
|
+
while (open >= 0 && collected < options.depth) {
|
|
3663
|
+
var level = 1;
|
|
3664
|
+
var i = open + 1;
|
|
3665
|
+
var close = -1;
|
|
3666
|
+
while (i < n && close < 0) {
|
|
3667
|
+
var cu = key.charCodeAt(i);
|
|
3668
|
+
if (cu === 91) {
|
|
3669
|
+
level += 1;
|
|
3670
|
+
} else if (cu === 93) {
|
|
3671
|
+
level -= 1;
|
|
3672
|
+
if (level === 0) {
|
|
3673
|
+
close = i;
|
|
3674
|
+
}
|
|
3663
3675
|
}
|
|
3676
|
+
i += 1;
|
|
3677
|
+
}
|
|
3678
|
+
if (close < 0) {
|
|
3679
|
+
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
3680
|
+
return segments;
|
|
3681
|
+
}
|
|
3682
|
+
var seg = key.slice(open, close + 1);
|
|
3683
|
+
var content = seg.slice(1, -1);
|
|
3684
|
+
if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
|
|
3685
|
+
return;
|
|
3664
3686
|
}
|
|
3665
|
-
|
|
3687
|
+
segments[segments.length] = seg;
|
|
3688
|
+
collected += 1;
|
|
3689
|
+
open = key.indexOf("[", close + 1);
|
|
3666
3690
|
}
|
|
3667
|
-
if (
|
|
3691
|
+
if (open >= 0) {
|
|
3668
3692
|
if (options.strictDepth === true) {
|
|
3669
3693
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
3670
3694
|
}
|
|
3671
|
-
|
|
3695
|
+
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
3672
3696
|
}
|
|
3673
|
-
return
|
|
3697
|
+
return segments;
|
|
3674
3698
|
};
|
|
3675
3699
|
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
3676
3700
|
if (!givenKey) {
|
|
@@ -224,7 +224,7 @@ const index = {
|
|
|
224
224
|
id: "settings.configuration",
|
|
225
225
|
defaultMessage: "Configuration"
|
|
226
226
|
},
|
|
227
|
-
Component: () => import("./index-
|
|
227
|
+
Component: () => import("./index-D7TfdEp2.mjs"),
|
|
228
228
|
permissions: [{ action: PERMISSIONS.READ, subject: null }]
|
|
229
229
|
};
|
|
230
230
|
app.addSettingsLink(
|
|
@@ -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-BzNqVadE.mjs";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
import { Filter, ClipboardList, Server } from "lucide-react";
|
|
11
11
|
function Role({ oidcRoles, roles, onChangeRole }) {
|
|
@@ -3256,7 +3256,7 @@ function requireStringify() {
|
|
|
3256
3256
|
}
|
|
3257
3257
|
if (obj === null) {
|
|
3258
3258
|
if (strictNullHandling) {
|
|
3259
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
3259
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
|
|
3260
3260
|
}
|
|
3261
3261
|
obj = "";
|
|
3262
3262
|
}
|
|
@@ -3274,7 +3274,9 @@ function requireStringify() {
|
|
|
3274
3274
|
var objKeys;
|
|
3275
3275
|
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
3276
3276
|
if (encodeValuesOnly && encoder) {
|
|
3277
|
-
obj = utils2.maybeMap(obj,
|
|
3277
|
+
obj = utils2.maybeMap(obj, function(v) {
|
|
3278
|
+
return v == null ? v : encoder(v);
|
|
3279
|
+
});
|
|
3278
3280
|
}
|
|
3279
3281
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
3280
3282
|
} else if (isArray(filter)) {
|
|
@@ -3412,6 +3414,9 @@ function requireStringify() {
|
|
|
3412
3414
|
var sideChannel2 = getSideChannel();
|
|
3413
3415
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
3414
3416
|
var key = objKeys[i];
|
|
3417
|
+
if (typeof key === "undefined" || key === null) {
|
|
3418
|
+
continue;
|
|
3419
|
+
}
|
|
3415
3420
|
var value = obj[key];
|
|
3416
3421
|
if (options.skipNulls && value === null) {
|
|
3417
3422
|
continue;
|
|
@@ -3441,9 +3446,9 @@ function requireStringify() {
|
|
|
3441
3446
|
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
3442
3447
|
if (options.charsetSentinel) {
|
|
3443
3448
|
if (options.charset === "iso-8859-1") {
|
|
3444
|
-
prefix += "utf8=%26%2310003%3B
|
|
3449
|
+
prefix += "utf8=%26%2310003%3B" + options.delimiter;
|
|
3445
3450
|
} else {
|
|
3446
|
-
prefix += "utf8=%E2%9C%93
|
|
3451
|
+
prefix += "utf8=%E2%9C%93" + options.delimiter;
|
|
3447
3452
|
}
|
|
3448
3453
|
}
|
|
3449
3454
|
return joined.length > 0 ? prefix + joined : "";
|
|
@@ -3505,9 +3510,9 @@ function requireParse() {
|
|
|
3505
3510
|
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
3506
3511
|
var parts = cleanStr.split(
|
|
3507
3512
|
options.delimiter,
|
|
3508
|
-
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
3513
|
+
options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
|
|
3509
3514
|
);
|
|
3510
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
3515
|
+
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
|
|
3511
3516
|
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
3512
3517
|
}
|
|
3513
3518
|
var skipIndex = -1;
|
|
@@ -3626,8 +3631,8 @@ function requireParse() {
|
|
|
3626
3631
|
}
|
|
3627
3632
|
return leaf;
|
|
3628
3633
|
};
|
|
3629
|
-
var splitKeyIntoSegments = function splitKeyIntoSegments2(
|
|
3630
|
-
var key = options.allowDots ?
|
|
3634
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments2(originalKey, options) {
|
|
3635
|
+
var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
|
|
3631
3636
|
if (options.depth <= 0) {
|
|
3632
3637
|
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
3633
3638
|
if (!options.allowPrototypes) {
|
|
@@ -3636,37 +3641,56 @@ function requireParse() {
|
|
|
3636
3641
|
}
|
|
3637
3642
|
return [key];
|
|
3638
3643
|
}
|
|
3639
|
-
var
|
|
3640
|
-
var
|
|
3641
|
-
var
|
|
3642
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
3643
|
-
var keys = [];
|
|
3644
|
+
var segments = [];
|
|
3645
|
+
var first = key.indexOf("[");
|
|
3646
|
+
var parent = first >= 0 ? key.slice(0, first) : key;
|
|
3644
3647
|
if (parent) {
|
|
3645
3648
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
3646
3649
|
if (!options.allowPrototypes) {
|
|
3647
3650
|
return;
|
|
3648
3651
|
}
|
|
3649
3652
|
}
|
|
3650
|
-
|
|
3651
|
-
}
|
|
3652
|
-
var
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3653
|
+
segments[segments.length] = parent;
|
|
3654
|
+
}
|
|
3655
|
+
var n = key.length;
|
|
3656
|
+
var open = first;
|
|
3657
|
+
var collected = 0;
|
|
3658
|
+
while (open >= 0 && collected < options.depth) {
|
|
3659
|
+
var level = 1;
|
|
3660
|
+
var i = open + 1;
|
|
3661
|
+
var close = -1;
|
|
3662
|
+
while (i < n && close < 0) {
|
|
3663
|
+
var cu = key.charCodeAt(i);
|
|
3664
|
+
if (cu === 91) {
|
|
3665
|
+
level += 1;
|
|
3666
|
+
} else if (cu === 93) {
|
|
3667
|
+
level -= 1;
|
|
3668
|
+
if (level === 0) {
|
|
3669
|
+
close = i;
|
|
3670
|
+
}
|
|
3659
3671
|
}
|
|
3672
|
+
i += 1;
|
|
3673
|
+
}
|
|
3674
|
+
if (close < 0) {
|
|
3675
|
+
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
3676
|
+
return segments;
|
|
3677
|
+
}
|
|
3678
|
+
var seg = key.slice(open, close + 1);
|
|
3679
|
+
var content = seg.slice(1, -1);
|
|
3680
|
+
if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
|
|
3681
|
+
return;
|
|
3660
3682
|
}
|
|
3661
|
-
|
|
3683
|
+
segments[segments.length] = seg;
|
|
3684
|
+
collected += 1;
|
|
3685
|
+
open = key.indexOf("[", close + 1);
|
|
3662
3686
|
}
|
|
3663
|
-
if (
|
|
3687
|
+
if (open >= 0) {
|
|
3664
3688
|
if (options.strictDepth === true) {
|
|
3665
3689
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
3666
3690
|
}
|
|
3667
|
-
|
|
3691
|
+
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
3668
3692
|
}
|
|
3669
|
-
return
|
|
3693
|
+
return segments;
|
|
3670
3694
|
};
|
|
3671
3695
|
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
3672
3696
|
if (!givenKey) {
|
|
@@ -227,7 +227,7 @@ const index = {
|
|
|
227
227
|
id: "settings.configuration",
|
|
228
228
|
defaultMessage: "Configuration"
|
|
229
229
|
},
|
|
230
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
230
|
+
Component: () => Promise.resolve().then(() => require("./index-BlaayM2r.js")),
|
|
231
231
|
permissions: [{ action: PERMISSIONS.READ, subject: null }]
|
|
232
232
|
};
|
|
233
233
|
app.addSettingsLink(
|
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-pRgysDzV.js");
|
|
4
4
|
require("react");
|
|
5
5
|
require("react-dom/client");
|
|
6
6
|
exports.default = index.index;
|
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -577,7 +577,7 @@ function resolveRedirectUri(config2) {
|
|
|
577
577
|
"OIDC_PUBLIC_URL or PUBLIC_URL must be set in production. Provide your Strapi origin (e.g. https://myapp.com)."
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
return `${publicUrl}${OIDC_CALLBACK_PATH}`;
|
|
580
|
+
return `${publicUrl.replace(/\/+$/, "")}${OIDC_CALLBACK_PATH}`;
|
|
581
581
|
}
|
|
582
582
|
const jwksCache = /* @__PURE__ */ new Map();
|
|
583
583
|
let jwksDisabledWarned = false;
|
package/dist/server/index.mjs
CHANGED
|
@@ -571,7 +571,7 @@ function resolveRedirectUri(config2) {
|
|
|
571
571
|
"OIDC_PUBLIC_URL or PUBLIC_URL must be set in production. Provide your Strapi origin (e.g. https://myapp.com)."
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
|
-
return `${publicUrl}${OIDC_CALLBACK_PATH}`;
|
|
574
|
+
return `${publicUrl.replace(/\/+$/, "")}${OIDC_CALLBACK_PATH}`;
|
|
575
575
|
}
|
|
576
576
|
const jwksCache = /* @__PURE__ */ new Map();
|
|
577
577
|
let jwksDisabledWarned = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-plugin-oidc",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"description": "A Strapi plugin that provides OpenID Connect (OIDC) authentication functionality for the Strapi Admin Panel.",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"displayName": "OIDC Plugin",
|
|
@@ -83,9 +83,8 @@
|
|
|
83
83
|
],
|
|
84
84
|
"license": "MIT",
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"vitest": "^4.1.2",
|
|
87
86
|
"@eslint/js": "^10.0.1",
|
|
88
|
-
"@strapi/sdk-plugin": "^6.
|
|
87
|
+
"@strapi/sdk-plugin": "^6.1.1",
|
|
89
88
|
"@types/node": "^25.5.2",
|
|
90
89
|
"@types/supertest": "^7.2.0",
|
|
91
90
|
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
@@ -103,7 +102,8 @@
|
|
|
103
102
|
"react-router-dom": "^6.30.3",
|
|
104
103
|
"styled-components": "^6.3.12",
|
|
105
104
|
"supertest": "^7.2.2",
|
|
106
|
-
"typescript": "^5.9.3"
|
|
105
|
+
"typescript": "^5.9.3",
|
|
106
|
+
"vitest": "^4.1.2"
|
|
107
107
|
},
|
|
108
108
|
"exports": {
|
|
109
109
|
"./package.json": "./package.json",
|