Skip to content

Conversation

@andrewmchen
Copy link
Contributor

There was a bug with python 3 basic auth encoding where we put a string into the function base64.standard_b64encode.

auth = {'Authorization': userHeaderData, 'Content-Type': 'text/json'}
encoded_auth = (user + ":" + password).encode()
user_header_data = "Basic " + base64.standard_b64encode(encoded_auth).decode()
auth = {'Authorization': user_header_data, 'Content-Type': 'text/json'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not part of this PR) "Content-Type" shouldn't be part of the auth header.

@mengxr mengxr added the LGTM label Apr 11, 2018
@andrewmchen andrewmchen merged commit 8a2bfe8 into databricks:master Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants