class documentation
Jira Cookie Authentication. Allows using cookie authentication as described by `jira api docs <https://developer.atlassian.com/server/jira/platform/cookie-based-authentication/>`_
Method | __call__ |
Undocumented |
Method | __init__ |
Cookie Based Authentication. |
Method | handle |
Refresh cookies if the session cookie has expired. Then retry the request. |
Method | init |
Initialise the Session object's cookies, so we can use the session cookie. |
Method | process |
Undocumented |
Method | send |
Undocumented |
Method | update |
Undocumented |
Property | cookies |
Undocumented |
Method | _increment |
Undocumented |
Method | _reset |
Undocumented |
Instance Variable | __auth |
Undocumented |
Instance Variable | _max |
Undocumented |
Instance Variable | _retry |
Undocumented |
Instance Variable | _session |
Undocumented |
Instance Variable | _session |
Undocumented |
def __init__(self, session:
ResilientSession
, session_api_url: str
, auth: Tuple[ str, str]
):
(source)
¶
Cookie Based Authentication. Args: session (ResilientSession): The Session object to communicate with the API. session_api_url (str): The session api url to use. auth (Tuple[str, str]): The username, password tuple.
Refresh cookies if the session cookie has expired. Then retry the request. Args: response (requests.Response): the response with the possible 401 to handle Returns: requests.Response
Initialise the Session object's cookies, so we can use the session cookie. Raises: HTTPError: if the post returns an erroring http response