Merge branch '16678-login-tokens-lifetime-config'
[arvados.git] / sdk / go / arvados / config.go
index 41c20c8db2ee71cf4c4a024e7d1d73b72878a098..d98ffd18ed154c6882eb64c16f3af47bbc8c4b94 100644 (file)
@@ -177,8 +177,13 @@ type Cluster struct {
                        ProviderAppID     string
                        ProviderAppSecret string
                }
+               Test struct {
+                       Enable bool
+                       Users  map[string]TestUser
+               }
                LoginCluster       string
                RemoteTokenRefresh Duration
+               TokenLifetime      Duration
        }
        Mail struct {
                MailchimpAPIKey                string
@@ -330,6 +335,11 @@ type Service struct {
        ExternalURL  URL
 }
 
+type TestUser struct {
+       Email    string
+       Password string
+}
+
 // URL is a url.URL that is also usable as a JSON key/value.
 type URL url.URL