(self, username, password)
| 559 | """An example implementation of HTTP basic authentication.""" |
| 560 | |
| 561 | def __init__(self, username, password): |
| 562 | super().__init__() |
| 563 | self.basic_auth = flight.BasicAuth(username, password) |
| 564 | self.token = None |
| 565 | |
| 566 | def authenticate(self, outgoing, incoming): |
| 567 | auth = self.basic_auth.serialize() |