def check_required_credentials(self):
    keys = list(self.requiredCredentials.keys())
    for key in keys:
        if (self.requiredCredentials[key] and (not getattr(self, key))):
            self.raise_error(AuthenticationError, details=(('requires `' + key) + '`'))
def check_required_credentials(self):
    keys = list(self.requiredCredentials.keys())
    for key in keys:
        if (self.requiredCredentials[key] and (not getattr(self, key))):
            self.raise_error(AuthenticationError, details=(('requires `' + key) + '`'))