From d80b7a4ab1037fd77671785146b44f29e9bfc37d Mon Sep 17 00:00:00 2001 From: odubajDT <93584209+odubajDT@users.noreply.github.com> Date: Mon, 28 Feb 2022 12:04:12 +0100 Subject: [PATCH] feat: Support authentication via proxy (#404) BREAKING CHANGE: The project model now contains parameters for new authentication methods. Signed-off-by: odubajDT --- pkg/api/models/create_project.go | 15 +++++++++++++++ pkg/api/models/project.go | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/pkg/api/models/create_project.go b/pkg/api/models/create_project.go index 5efc3966..1405ff99 100644 --- a/pkg/api/models/create_project.go +++ b/pkg/api/models/create_project.go @@ -17,6 +17,21 @@ type CreateProject struct { // git private key passphrase GitPrivateKeyPass string `json:"gitPrivateKeyPass,omitempty"` + // git proxy URL + GitProxyURL string `json:"gitProxyUrl,omitempty"` + + // git proxy scheme + GitProxyScheme string `json:"gitProxyScheme,omitempty"` + + // git proxy user + GitProxyUser string `json:"gitProxyUser,omitempty"` + + // git proxy secure + GitProxySecure bool `json:"gitProxySecure,omitempty"` + + // git proxy password + GitProxyPassword string `json:"gitProxyPassword,omitempty"` + // git user GitUser string `json:"gitUser,omitempty"` diff --git a/pkg/api/models/project.go b/pkg/api/models/project.go index 1b3e3d3b..f258f405 100644 --- a/pkg/api/models/project.go +++ b/pkg/api/models/project.go @@ -20,6 +20,21 @@ type Project struct { // git private key passphrase GitPrivateKeyPass string `json:"gitPrivateKeyPass,omitempty"` + // git proxy URL + GitProxyURL string `json:"gitProxyUrl,omitempty"` + + // git proxy scheme + GitProxyScheme string `json:"gitProxyScheme,omitempty"` + + // git proxy user + GitProxyUser string `json:"gitProxyUser,omitempty"` + + // git proxy secure + GitProxySecure bool `json:"gitProxySecure,omitempty"` + + // git proxy password + GitProxyPassword string `json:"gitProxyPassword,omitempty"` + // Git User GitUser string `json:"gitUser,omitempty"`