From 412283e52ff17cbbd7b76a27298f09525325b429 Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Sun, 29 Oct 2023 18:17:38 +0800 Subject: [PATCH] Add option for configuring openbravo with user and password in clear text --- config-sample.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config-sample.py b/config-sample.py index d421eae..ab5b855 100644 --- a/config-sample.py +++ b/config-sample.py @@ -1,9 +1,16 @@ +import base64 CACHE = {} # Openbravo API parameters ob_api_url = "http://[your-openbravo-domain]/openbravo/org.openbravo.service.json.jsonrest/" -userpass_b64 = "cm9ib3RhcGk6S2kxMzAxa28j" +# Keep only one of the 2 sections below and comment out the other: +# 1) you may enter the Openbravo user and password +ob_user = 'your-ob-user' +ob_pass = 'your-ob-password' +userpass_b64 = base64.b64encode((ob_user+':'+ob_pass).encode('ascii')).decode('ascii') +# 2) you may enter the user:password base64 encoded +#userpass_b64 = "your-ob-user:your-ob-password-base64-encoded" # Banqup API parameters