diff --git a/server/lib/python/cartodb_services/cartodb_services/google/client_factory.py b/server/lib/python/cartodb_services/cartodb_services/google/client_factory.py index 61e5d4e..c60c1c3 100644 --- a/server/lib/python/cartodb_services/cartodb_services/google/client_factory.py +++ b/server/lib/python/cartodb_services/cartodb_services/google/client_factory.py @@ -30,7 +30,8 @@ class GoogleMapsClientFactory(): # Only fails if the string dont have a correct padding for b64 # but this way we could provide a more clear error than # TypeError: Incorrect padding - base64.b64decode(client_secret) + b64_secret = client_secret.replace('-', '+').replace('_', '/') + base64.b64decode(b64_secret) return True except TypeError: return False