From fdfb13a74bf2007c909f9f6fe8db47e531fc6f1c Mon Sep 17 00:00:00 2001 From: "nikolas.mirillas@nordeck.net" Date: Mon, 23 Jan 2023 14:39:18 +0100 Subject: [PATCH] fix opt param Signed-off-by: nikolas.mirillas@nordeck.net --- backend/internal/client/rest_client.go | 1 - backend/internal/configuration.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/backend/internal/client/rest_client.go b/backend/internal/client/rest_client.go index 3cf8c70..aa02841 100644 --- a/backend/internal/client/rest_client.go +++ b/backend/internal/client/rest_client.go @@ -27,7 +27,6 @@ import ( func Post(config *internal.Configuration, reqBody []byte) (io.ReadCloser, error) { client := &http.Client{} req, err := http.NewRequest("POST", config.OidcValidationUrl, bytes.NewBuffer(reqBody)) - req.Header.Add("Authorization", "Bearer "+config.UvsAuthToken) req.Header.Add("Content-Type", "application/json") resp, err := client.Do(req) if err != nil { diff --git a/backend/internal/configuration.go b/backend/internal/configuration.go index f21c221..294a73c 100644 --- a/backend/internal/configuration.go +++ b/backend/internal/configuration.go @@ -33,7 +33,6 @@ type Configuration struct { OidcValidationUrl string `json:"oidc_validation_url,'https://some.url/verify/user'"` // OIDC_VALIDATION_URL JwtSecret string `json:"jwt_secret,someArbitraryString"` // JWT_SECRET MatrixServerName string `json:"matrix_server_name,'domain.tld'"` // MATRIX_SERVER_NAME - UvsAuthToken string `json:"uvs_auth_token,someArbitraryString"` // UVS_AUTH_TOKEN } func ConfigurationFromEnv() *Configuration { @@ -47,7 +46,6 @@ func ConfigurationFromEnv() *Configuration { os.Getenv("OIDC_VALIDATION_URL"), os.Getenv("JWT_SECRET"), os.Getenv("MATRIX_SERVER_NAME"), - os.Getenv("UVS_AUTH_TOKEN"), } elements := reflect.ValueOf(&config).Elem()