Change requirement versions for python 3.8 92/102492/2
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 27 Feb 2020 11:55:37 +0000 (17:25 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 27 Feb 2020 17:18:47 +0000 (22:48 +0530)
Add byte to string conversion after base64 encode

Issue-ID: OPTFRA-645
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I27326dd35b6727da80c159cb34d5d67e0829cf8f

conductor/conductor/common/utils/basic_auth_util.py
conductor/requirements.txt

index 039384f..def8b0a 100644 (file)
@@ -33,7 +33,6 @@ def encode(user_id, password):
                 # like object so we need to convert the str into bytes
 
     user_pass = user_pass.encode()     # converting str into bytes form
-    base64_val = base64.b64encode(user_pass)
+    base64_val = base64.b64encode(user_pass).decode()
     authorization_val = _LE("Basic {}".format(base64_val))
-
     return authorization_val
index 6ad13e2..42a0d89 100644 (file)
@@ -4,7 +4,7 @@
 
 cotyledon # Apache-2.0
 futurist>=0.11.0 # Apache-2.0
-lxml>=2.3 # BSD
+lxml>=4.5.0 # BSD
 oslo.config>=3.9.0 # Apache-2.0
 oslo.i18n>=2.1.0 # Apache-2.0
 oslo.log>=1.14.0 # Apache-2.0
@@ -26,4 +26,4 @@ WebOb>=1.2.3 # MIT
 onapsmsclient>=0.0.4
 Flask>=0.11.1
 prometheus-client>=0.3.1
-pycrypto==2.6.1
+pycryptodome==3.9.7