use custom HTTPBasicAuth class
to support LazyPrompt as password and to generate the Authorization header only once instead of for every request
This commit is contained in:
@@ -1239,7 +1239,7 @@ class DeviantartOAuthAPI():
|
||||
self.log.info("Requesting public access token")
|
||||
data = {"grant_type": "client_credentials"}
|
||||
|
||||
auth = (self.client_id, self.client_secret)
|
||||
auth = util.HTTPBasicAuth(self.client_id, self.client_secret)
|
||||
response = self.extractor.request(
|
||||
url, method="POST", data=data, auth=auth, fatal=False)
|
||||
data = response.json()
|
||||
|
||||
Reference in New Issue
Block a user