def extract_user_id(self, request):
payload = self.extract_payload(request)<EOL>user_id_attribute = self.config.user_id()<EOL>return payload.get(user_id_attribute, None)<EOL>
Extract a user id from a request object.