From 7e65155a7bbc0bf840b4ab56a35ee794e89dfbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20L=C3=B3pez=20Guevara?= Date: Fri, 12 Aug 2022 13:53:34 -0300 Subject: [PATCH] fix(oauth2): parse params properly for casdoor in redirect (#8149) Co-authored-by: Tim Lai --- dev-helpers/oauth2-redirect.html | 2 +- dist/oauth2-redirect.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-helpers/oauth2-redirect.html b/dev-helpers/oauth2-redirect.html index 0f4d4953d47..87a2eed8f5e 100644 --- a/dev-helpers/oauth2-redirect.html +++ b/dev-helpers/oauth2-redirect.html @@ -12,7 +12,7 @@ var isValid, qp, arr; if (/code|token|error/.test(window.location.hash)) { - qp = window.location.hash.substring(1); + qp = window.location.hash.substring(1).replace('?', '&'); } else { qp = location.search.substring(1); } diff --git a/dist/oauth2-redirect.html b/dist/oauth2-redirect.html index 9a25c9e88b5..56409171811 100644 --- a/dist/oauth2-redirect.html +++ b/dist/oauth2-redirect.html @@ -13,7 +13,7 @@ var isValid, qp, arr; if (/code|token|error/.test(window.location.hash)) { - qp = window.location.hash.substring(1); + qp = window.location.hash.substring(1).replace('?', '&'); } else { qp = location.search.substring(1); }