def __call__(self, request):
headers = {<EOL>'<STR_LIT>': self._access_token<EOL>}<EOL>request.headers.update(headers)<EOL>if self.user is not None:<EOL><INDENT>return request<EOL><DEDENT>self._swimlane._session.auth = None<EOL>resp = self._swimlane.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>headers=headers<EOL>)<EOL>self._swimlane._session.auth = self<EOL>json_content = resp.json()<EOL>self.user = User(self._swimlane, _user_raw_from_login_content(json_content))<EOL>return request<EOL>
Attach necessary headers to all requests