add with_credentials to datasource model

This commit is contained in:
Mitsuhiro Tanda
2015-12-09 14:44:28 +09:00
parent f1bc87133d
commit 6edd6c8f03
7 changed files with 19 additions and 0 deletions
+3
View File
@@ -62,6 +62,9 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
if ds.BasicAuth {
dsMap["basicAuth"] = util.GetBasicAuthHeader(ds.BasicAuthUser, ds.BasicAuthPassword)
}
if ds.WithCredentials {
dsMap["withCredentials"] = ds.WithCredentials
}
if ds.Type == m.DS_INFLUXDB_08 {
dsMap["username"] = ds.User