fix some other bugs of iam

This commit is contained in:
Montech
2026-10-11 16:01:15 +03:30
parent e4924a28f5
commit 025d223dac
227 changed files with 376 additions and 221 deletions
+3
View File
@@ -122,6 +122,9 @@ router.beforeEach(async (to) => {
try {
const started = await api.ssoStart();
if (started.enabled && started.authorize_url) {
if (to.fullPath.startsWith('/') && !to.fullPath.startsWith('//')) {
sessionStorage.setItem('gb_iam_return', to.fullPath);
}
window.location.assign(started.authorize_url);
return false;
}