def auth(self, user, password, **kw):
        self.request.set_auth_credentials(user, password)
This authentication mechanism implements HTTP Basic Authentication.
dataset/ETHPy150Open datafolklabs/drest/drest/api.py/API.auth