16314: Invoke user/pass prompt for Test authentication method.
authorTom Clegg <tom@tomclegg.ca>
Fri, 21 Aug 2020 18:55:24 +0000 (14:55 -0400)
committerTom Clegg <tom@tomclegg.ca>
Fri, 21 Aug 2020 18:55:24 +0000 (14:55 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

src/common/config.ts
src/views/login-panel/login-panel.tsx

index cf539f3dd51856783b56dd6a90192c1dd69fe319..4e32395b0dae69c7404c5fa317c860055e6d9f1d 100644 (file)
@@ -76,6 +76,9 @@ export interface ClusterConfigJSON {
         SSO: {
             Enable: boolean;
         }
+        Test: {
+            Enable: boolean;
+        }
     };
     Collections: {
         ForwardSlashNameSubstitution: string;
@@ -231,6 +234,9 @@ export const mockClusterConfigJSON = (config: Partial<ClusterConfigJSON>): Clust
         SSO: {
             Enable: false,
         },
+        Test: {
+            Enable: false;
+        }
     },
     Collections: {
         ForwardSlashNameSubstitution: "",
index f60f032a7f07f8c7f068ace3a60ba78c849da45b..f7cba4f860be9ec80d30b7ac0a1a7785cb145cc3 100644 (file)
@@ -72,7 +72,7 @@ type LoginPanelProps = DispatchProp<any> & WithStyles<CssRules> & {
 
 const requirePasswordLogin = (config: Config): boolean => {
     if (config && config.clusterConfig) {
-        return config.clusterConfig.Login.LDAP.Enable || config.clusterConfig.Login.PAM.Enable || false;
+        return config.clusterConfig.Login.LDAP.Enable || config.clusterConfig.Login.PAM.Enable || config.clusterConfig.Login.Test.Enable || false;
     }
     return false;
 };