From f736ef3b96be879b93ec73c4a86d8b57455242ab Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 16 Aug 2022 11:43:17 -0400 Subject: [PATCH] config model auth users (#12) --- model/config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/model/config.go b/model/config.go index 4c964574..14e9dead 100644 --- a/model/config.go +++ b/model/config.go @@ -11,13 +11,14 @@ const ( type ProxyConfig struct { AuthScheme AuthScheme `json:"auth_scheme"` + BasicAuth BasicAuth `json:"basic_auth"` } type BasicAuth struct { - Users []*AuthUser + Users []*AuthUser `json:"users"` } type AuthUser struct { - Username string - Password string + Username string `json:"username"` + Password string `json:"password"` }