Gets Auth Settings dict for api client. :return: The Auth Settings information dict.
(self)
| 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. |
no test coverage detected