(username: str, password: str)
| 29 | |
| 30 | @staticmethod |
| 31 | def make_header(username: str, password: str) -> str: |
| 32 | credentials = f'{username}:{password}' |
| 33 | token = b64encode(credentials.encode()).strip().decode('latin1') |
| 34 | return f'Basic {token}' |
| 35 | |
| 36 | |
| 37 | class HTTPBearerAuth(requests.auth.AuthBase): |