code: def get_credentials(self, **kwargs):
          
          login = (
              kwargs.get("user") or os.environ.get("POLARION_USERNAME") or self.config.get("username")
          )
          pwd = (
              kwargs.get("password")
              or os.environ.get("POLARION_PASSWORD")
              or self.config.get("password")
          )
  
          if not all([login, pwd]):
              raise Dump2PolarionException("Failed to submit to Polarion - missing credentials")
  
          self.credentials = (login, pwd)
docs: Sets credentails.