[arvados-workbench2] created: 2.4.0-148-g620d5745
git repository hosting
git at public.arvados.org
Tue Jul 12 14:06:27 UTC 2022
at 620d5745b5fb97e08945c15048ad5439e5bbe80c (commit)
commit 620d5745b5fb97e08945c15048ad5439e5bbe80c
Author: Stephen Smith <stephen at curii.com>
Date: Tue Jul 12 10:05:36 2022 -0400
18965: Fix storing targetUrl for non-password login
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/services/auth-service/auth-service.ts b/src/services/auth-service/auth-service.ts
index 548dbcaa..52bfa29e 100644
--- a/src/services/auth-service/auth-service.ts
+++ b/src/services/auth-service/auth-service.ts
@@ -68,13 +68,16 @@ export class AuthService {
}
}
+ public setTargetUrl(url: string) {
+ localStorage.setItem(TARGET_URL, url);
+ }
+
public removeTargetURL() {
localStorage.removeItem(TARGET_URL);
- sessionStorage.removeItem(TARGET_URL);
}
public getTargetURL() {
- return this.getStorage().getItem(TARGET_URL);
+ return localStorage.getItem(TARGET_URL);
}
public removeApiToken() {
@@ -113,7 +116,7 @@ export class AuthService {
const currentUrl = `${window.location.protocol}//${window.location.host}/token`;
const homeClusterHost = remoteHosts[homeCluster];
const rd = new URL(window.location.href);
- this.getStorage().setItem(TARGET_URL, rd.pathname + rd.search);
+ this.setTargetUrl(rd.pathname + rd.search);
window.location.assign(`https://${homeClusterHost}/login?${(uuidPrefix !== homeCluster && homeCluster !== loginCluster) ? "remote=" + uuidPrefix + "&" : ""}return_to=${currentUrl}`);
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list