MCPcopy Create free account
hub / github.com/dataforseo/PythonClient / auth_settings

Method auth_settings

dataforseo_client/configuration.py:315–328  ·  view source on GitHub ↗

Gets Auth Settings dict for api client. :return: The Auth Settings information dict.

(self)

Source from the content-addressed store, hash-verified

313 ).get('authorization')
314
315 def auth_settings(self):
316 """Gets Auth Settings dict for api client.
317
318 :return: The Auth Settings information dict.
319 """
320 auth = {}
321 if self.username is not None and self.password is not None:
322 auth['basicAuth'] = {
323 'type': 'basic',
324 'in': 'header',
325 'key': 'Authorization',
326 'value': self.get_basic_auth_token()
327 }
328 return auth
329
330 def to_debug_report(self):
331 """Gets the essential information for debugging.

Callers 1

Calls 1

get_basic_auth_tokenMethod · 0.95

Tested by

no test coverage detected