diff pkg/imports/wp.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/wp.go	Tue Mar 19 12:28:42 2019 +0100
+++ b/pkg/imports/wp.go	Tue Mar 19 12:42:43 2019 +0100
@@ -50,6 +50,10 @@
 	SortBy string `json:"sort-by"`
 	// Precsion of match points to line strings.
 	Precision *float64 `json:"precision,omitempty"`
+	// 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"`
 }
 
 const WPJobKind JobKind = "wp"