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()