From dbbc92bf0143f2c6dec37665ca40ce78176fa5c2 Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Sun, 1 Mar 2026 17:43:52 +0100 Subject: [PATCH] web/sfe: bug: polyfill needed to supply Object.assign() to IE11. (cherry-pick #20126 to version-2025.12) (#20136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Cherry-pick #20126 to version-2025.12 (with conflicts) This cherry-pick has conflicts that need manual resolution. Original PR: #20126 Original commit: b16dd8ad0e98835662474c594149ecaceced45df * fix conflict Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer Co-authored-by: Ken Sternberg <133134217+kensternberg-authentik@users.noreply.github.com> Co-authored-by: Marcelo Elizeche Landó Co-authored-by: Jens Langhammer --- web/package-lock.json | 11 +++++------ web/packages/sfe/package.json | 1 + web/packages/sfe/src/index.ts | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 234d2ab2fd..38f254b9b5 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -6381,7 +6381,6 @@ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "license": "MIT", - "peer": true, "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -6583,9 +6582,9 @@ "license": "MIT" }, "node_modules/core-js": { - "version": "3.47.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.47.0.tgz", - "integrity": "sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg==", + "version": "3.48.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.48.0.tgz", + "integrity": "sha512-zpEHTy1fjTMZCKLHUZoVeylt9XrzaIN2rbPXEt0k+q7JE5CkCZdo6bNq55bn24a69CH7ErAVLKijxJja4fw+UQ==", "hasInstallScript": true, "license": "MIT", "funding": { @@ -10476,8 +10475,7 @@ "version": "3.7.1", "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/js-levenshtein-esm": { "version": "2.0.0", @@ -17764,6 +17762,7 @@ "@swc/core": "^1.15.3", "base64-js": "^1.5.1", "bootstrap": "^4.6.2", + "core-js": "^3.48.0", "formdata-polyfill": "^2025.11.0", "globby": "16.0.0", "jquery": "^3.7.1", diff --git a/web/packages/sfe/package.json b/web/packages/sfe/package.json index 8efad0fa8f..3414f27d38 100644 --- a/web/packages/sfe/package.json +++ b/web/packages/sfe/package.json @@ -23,6 +23,7 @@ "@swc/core": "^1.15.3", "base64-js": "^1.5.1", "bootstrap": "^4.6.2", + "core-js": "^3.48.0", "formdata-polyfill": "^2025.11.0", "globby": "16.0.0", "jquery": "^3.7.1", diff --git a/web/packages/sfe/src/index.ts b/web/packages/sfe/src/index.ts index 053e551206..42bc5fe7e4 100644 --- a/web/packages/sfe/src/index.ts +++ b/web/packages/sfe/src/index.ts @@ -1,5 +1,6 @@ import "formdata-polyfill"; import "weakmap-polyfill"; +import "core-js/actual/object/assign"; import { type AccessDeniedChallenge,