class_docstr: JiraOutput handles all alert dispatching for Jira
class_docstr_tok: ["JiraOutput","handles","all","alert","dispatching","for","Jira"]
docstr: Establish a cookie based Jira session via basic user auth.
  
  Args:
      username (str): The Jira username used for establishing the session
      password (str): The Jira password used for establishing the session
  
  Returns:
      str: Header value intended to be passed with every subsequent Jira request
           or False if unsuccessful
docstr_tok: ["Establish","a","cookie","based","Jira","session","via","basic","user","auth",".","Args",":","username","(","str",")",":","The","Jira","username","used","for","establishing","the","session","password","(","str",")",":","The","Jira","password","used","for","establishing","the","session","Returns",":","str",":","Header","value","intended","to","be","passed","with","every","subsequent","Jira","request","or","False","if","unsuccessful"]
code: def _establish_session(self, username, password):
      """Establish a cookie based Jira session via basic user auth.
  
      Args:
          username (str): The Jira username used for establishing the session
          password (str): The Jira password used for establishing the session
  
      Returns:
          str: Header value intended to be passed with every subsequent Jira request
               or False if unsuccessful
      """
      login_url = os.path.join(self._base_url, self.LOGIN_ENDPOINT)
      auth_info = {"username": username, "password": password}
  
      try:
          resp = self._post_request_retry(
              login_url,
              data=auth_info,
              headers=self._get_default_headers(),
              verify=False,
          )
      except OutputRequestFailure:
          LOGGER.error("Failed to authenticate to Jira")
          return False
  
      resp_dict = resp.json()
      if not resp_dict:
          return False
  
      return "{}={}".format(
          resp_dict["session"]["name"], resp_dict["session"]["value"]
      )
  
file_path: streamalert/streamalert/alert_processor/outputs/jira.py
imports: from collections import OrderedDict
  import json
  import os
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.output_base import OutputDispatcher, OutputProperty, OutputRequestFailure, StreamAlertOutput
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 10 for calling the JiraOutput obj's underlying member method code with example usage: obj._establish_session(username, password) and returns: str, False, False