diff pkg/imports/fd.go @ 2723:a10022399e24

WFS downloads: Fetch user and password from config.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Mar 2019 12:42:43 +0100
parents 56c8ef515d93
children 7cb027be277d
line wrap: on
line diff
--- a/pkg/imports/fd.go	Tue Mar 19 12:28:42 2019 +0100
+++ b/pkg/imports/fd.go	Tue Mar 19 12:42:43 2019 +0100
@@ -39,6 +39,10 @@
 	MaxWidth           int    `json:"max-width"`
 	Depth              int    `json:"depth"`
 	SourceOrganization string `json:"source-organization"`
+	// User is an optional username for Basic Auth.
+	User string `json:"user,omitempty"`
+	// Password is an optional password for Basic Auth.
+	Password string `json:"password,omitempty"`
 }
 
 type fdTime struct{ time.Time }