Merge pull request #3516 from gravitl/NET-2067

NET-2067: Oauth only setup;
This commit is contained in:
Abhishek K 2025-06-23 08:47:03 +05:30 committed by GitHub
commit 251bc3aab0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,7 +247,10 @@ func getConfig(w http.ResponseWriter, r *http.Request) {
// @Success 200 {object} config.ServerSettings
func getSettings(w http.ResponseWriter, r *http.Request) {
scfg := logic.GetServerSettings()
scfg.ClientSecret = logic.Mask()
if scfg.ClientSecret != "" {
scfg.ClientSecret = logic.Mask()
}
logic.ReturnSuccessResponseWithJson(w, r, scfg, "fetched server settings successfully")
}