(username, password)
| 77 | |
| 78 | |
| 79 | def create_basic_header(username, password): |
| 80 | text = f"{username}:{password}" |
| 81 | auth = to_unicode(base64.b64encode(to_bytes(text))) |
| 82 | return {"Authorization": "Basic " + auth} |
| 83 | |
| 84 | |
| 85 | def create_bearer_header(token): |
searching dependent graphs…