@mu-cabin/opms-permission 0.8.5 → 0.8.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/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -535,8 +535,8 @@ function jumpToSSOLogout({
|
|
535
535
|
throw new Error("baseUrl is required");
|
536
536
|
}
|
537
537
|
const { location } = window;
|
538
|
-
const ssoLoginUrl = `${baseUrl}/idp/oauth2/authorize?client_id=${clientId}&response_type=code&redirect_uri=${location.origin}
|
539
|
-
const redirectUrl =
|
538
|
+
const ssoLoginUrl = `${baseUrl}/idp/oauth2/authorize?client_id=${clientId}&response_type=code&redirect_uri=${location.origin}${redirectToUrl || "/"}`;
|
539
|
+
const redirectUrl = ssoLoginUrl;
|
540
540
|
const logoutUrl = new URL(`${baseUrl}/idp/profile/OAUTH2/Redirect/GLO`);
|
541
541
|
logoutUrl.searchParams.set("response_type", "code");
|
542
542
|
logoutUrl.searchParams.set("entityId", clientId);
|
package/dist/index.mjs
CHANGED
@@ -497,8 +497,8 @@ function jumpToSSOLogout({
|
|
497
497
|
throw new Error("baseUrl is required");
|
498
498
|
}
|
499
499
|
const { location } = window;
|
500
|
-
const ssoLoginUrl = `${baseUrl}/idp/oauth2/authorize?client_id=${clientId}&response_type=code&redirect_uri=${location.origin}
|
501
|
-
const redirectUrl =
|
500
|
+
const ssoLoginUrl = `${baseUrl}/idp/oauth2/authorize?client_id=${clientId}&response_type=code&redirect_uri=${location.origin}${redirectToUrl || "/"}`;
|
501
|
+
const redirectUrl = ssoLoginUrl;
|
502
502
|
const logoutUrl = new URL(`${baseUrl}/idp/profile/OAUTH2/Redirect/GLO`);
|
503
503
|
logoutUrl.searchParams.set("response_type", "code");
|
504
504
|
logoutUrl.searchParams.set("entityId", clientId);
|