mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
secure aurh provider secrets
This commit is contained in:
parent
22e9d34d7a
commit
8852a7b333
2 changed files with 33 additions and 0 deletions
|
@ -49,6 +49,9 @@ func GetMeta(w http.ResponseWriter, r *http.Request) {
|
|||
data.Edition = Product.License.Edition
|
||||
data.Valid = Product.License.Valid
|
||||
|
||||
// Strip secrets
|
||||
data.AuthConfig = StripAuthSecrets(org.AuthProvider, org.AuthConfig)
|
||||
|
||||
json, err := json.Marshal(data)
|
||||
if err != nil {
|
||||
writeJSONMarshalError(w, method, "meta", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue