From 4250dd98f39c846c550d48171c0def4630fe52eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dzienisiewicz?= Date: Fri, 24 May 2024 12:39:52 +0200 Subject: [PATCH] protondrive: don't auth with an empty access token --- backend/protondrive/protondrive.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/protondrive/protondrive.go b/backend/protondrive/protondrive.go index 192fe5374..415db44a8 100644 --- a/backend/protondrive/protondrive.go +++ b/backend/protondrive/protondrive.go @@ -285,6 +285,9 @@ func getConfigMap(m configmap.Mapper) (uid, accessToken, refreshToken, saltedKey } _saltedKeyPass = saltedKeyPass + // empty strings are considered "ok" by m.Get, which is not true business-wise + ok = accessToken != "" && uid != "" && refreshToken != "" && saltedKeyPass != "" + return }