Auth: Implement the SSO Settings List endpoint (#80769)

* add list endpoint & initial tests

* add tests and ETag

* format service_test.go

* add list swagger param, generate openAPI, remove ETag, use RedactedPassword

* correct swagger param name

* Align tests to latest changes

* use setting.RedactedValue()

* add string assertion

* lint & require no error on res.Body.Close()

* add custom response type

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
colin-stuart
2024-01-19 14:39:09 -05:00
committed by GitHub
co-authored by Mihaly Gyongyosi
parent 40312c527b
commit e241188f00
9 changed files with 579 additions and 29 deletions
+1
View File
@@ -602,6 +602,7 @@ func RedactedValue(key, value string) string {
"ACCOUNT_KEY",
"ENCRYPTION_KEY",
"VAULT_TOKEN",
"CLIENT_SECRET",
} {
if match, err := regexp.MatchString(pattern, uppercased); match && err == nil {
return RedactedPassword