ciecplib
  • get
  • get_cert
  • get_cookie
    • get_cookie()
  • head
  • post
  • Session
  • ciecplib package
  • ecp-cert-info
  • ecp-curl
  • ecp-get-cert
  • ecp-get-cookie
ciecplib
  • get_cookie
  • View page source

get_cookie

ciecplib.get_cookie(url, endpoint=None, username=None, kerberos=False, debug=False, session=None)

Create a SAML/ECP session cookie valid for the given URL

Parameters:
  • url (str) – the target URL/domain

  • endpoint (str, optional) – the identity provider URL

  • username (str, optional) – the username to use when authenticating

  • kerberos (bool, optional) – if True use an existing kerberos TGT to authenticate

  • debug (bool, optional) – if True enable verbose debugging from requests, currently unused

  • session (requests.Session, optional) – an active requests.Session to use with the query

  • return_all (bool, optional) – return all cookies from the authentication request

Returns:

cookie (http.cookiejar.Cookie) – the newly-minted session cookie

Previous Next

© Copyright 2019, Duncan Macleod.

Built with Sphinx using a theme provided by Read the Docs.