I\'m following an api and I need to use a Base64 authentication of my User Id and password.
\'User ID and Password need to both be concatenated and then Base64 encoded\'
With python3, I have found a solution which is working for me:
import base64 userpass = username + ':' + password encoded_u = base64.b64encode(userpass.encode()).decode() headers = {"Authorization" : "Basic %s" % encoded_u}