code: def has_credentials(self):
          
          return all([
              getattr(self, '_%s' % field, None) is not None
              for field in self.CredentialMap.get(self.provider_name)])
docs: Does this session have valid credentials
          
          :rtype: bool