diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-12-04 16:03:35 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-12-04 16:03:35 +0300 |
commit | 8296ddf86fcc88f4b114ac8609cd9350e025e263 (patch) | |
tree | 75930f486e53fcce1a92933530a705cd93ee3a41 | |
parent | a53367c30c69adafe1f32da247498168b8808645 (diff) |
Make GitLab API Secret a supported parameter
-rw-r--r-- | main.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -57,7 +57,7 @@ var ( secret = flag.String("auth-secret", "", "Cookie store hash key, should be at least 32 bytes long.") gitLabAuthServer = flag.String("auth-server", "", "DEPRECATED, use gitlab-server instead. GitLab server, for example https://www.gitlab.com") gitLabServer = flag.String("gitlab-server", "", "GitLab server, for example https://www.gitlab.com") - gitLabAPISecretKey = flag.String("api-secret-key", "", "File with secret key used to authenticate with the GitLab API (NOT YET IMPLEMENTED)") + gitLabAPISecretKey = flag.String("api-secret-key", "", "File with secret key used to authenticate with the GitLab API") clientID = flag.String("auth-client-id", "", "GitLab application Client ID") clientSecret = flag.String("auth-client-secret", "", "GitLab application Client Secret") redirectURI = flag.String("auth-redirect-uri", "", "GitLab application redirect URI") @@ -243,10 +243,6 @@ func loadConfig() appConfig { "auth-redirect-uri": config.RedirectURI, }).Debug("Start daemon with configuration") - if *gitLabAPISecretKey != "" { - log.Warn("api-secret-key parameter is a placeholder for future developments, this option will be ignored.") - } - return config } |