Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic auth doesn't work with version 1.3.0 #38

Closed
jeromeleonard opened this issue Sep 17, 2017 · 0 comments
Closed

Basic auth doesn't work with version 1.3.0 #38

jeromeleonard opened this issue Sep 17, 2017 · 0 comments

Comments

@jeromeleonard
Copy link

jeromeleonard commented Sep 17, 2017

Request Type

Bug

Work Environment

Question Answer
TheHive4py version 1.3.0

Problem Description

error when using thehive4py with login/password HTTP basic authentication.

Possible Solutions

--- a/thehive4py/api.py
+++ b/thehive4py/api.py
@@ -42,8 +42,7 @@ class TheHiveApi:
         self.proxies = proxies
 
         if self.password is not None:
-            self.auth = requests.auth.HTTPBasicAuth(principal=self.principal,
-                                                    password=self.password)
+            self.auth = requests.auth.HTTPBasicAuth(self.principal, self.password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant