Skip to content

Commit

Permalink
fix(auth): No basic auth when Authorization header is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdsouza committed Jun 4, 2019
1 parent 45c4576 commit 6ad4e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm_cloud_sdk_core/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def request(self, method, url, accept_json=False, headers=None,
if self.token_manager:
access_token = self.token_manager.get_token()
headers['Authorization'] = '{0} {1}'.format(self.BEARER, access_token)
if self.username and self.password:
elif self.username and self.password:
auth = (self.username, self.password)

# Use a one minute timeout when our caller doesn't give a timeout.
Expand Down

0 comments on commit 6ad4e49

Please sign in to comment.