Merge branch 'master' into 16941-inactive-remotes 16941-inactive-remotes
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 5 Oct 2020 20:08:21 +0000 (16:08 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 5 Oct 2020 20:08:21 +0000 (16:08 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

src/services/auth-service/auth-service.ts
src/store/auth/auth-action-session.ts

index ce3564e001614b664998a9db73a57c79eabc79af..7510171106eb2761a4b0a118661ee55dc8c812b2 100644 (file)
@@ -96,7 +96,7 @@ export class AuthService {
         window.location.assign(`${this.baseUrl || ""}/logout?return_to=${currentUrl}`);
     }
 
-    public getUserDetails = (): Promise<User> => {
+    public getUserDetails = (showErrors?: boolean): Promise<User> => {
         const reqId = uuid();
         this.actions.progressFn(reqId, true);
         return this.apiClient
@@ -118,7 +118,7 @@ export class AuthService {
             })
             .catch(e => {
                 this.actions.progressFn(reqId, false);
-                this.actions.errorFn(reqId, e);
+                this.actions.errorFn(reqId, e, showErrors);
                 throw e;
             });
     }
index c871e147d1c249f4f5f699196f90eb33598023ae..10f17c02f221441e478d37372776417cc7d33eb1 100644 (file)
@@ -116,7 +116,7 @@ export const validateCluster = async (config: Config, useToken: string):
     const svc = createServices(config, { progressFn: () => { }, errorFn: () => { } });
     setAuthorizationHeader(svc, saltedToken);
 
-    const user = await svc.authService.getUserDetails();
+    const user = await svc.authService.getUserDetails(false);
     return {
         user,
         token: saltedToken,