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/domainendpoint (
str, optional) – the identity provider URLusername (
str, optional) – the username to use when authenticatingkerberos (
bool, optional) – ifTrueuse an existing kerberos TGT to authenticatedebug (
bool, optional) – ifTrueenable verbose debugging from requests, currently unusedsession (
requests.Session, optional) – an activerequests.Sessionto use with the queryreturn_all (
bool, optional) – return all cookies from the authentication request
- Returns:
cookie (
http.cookiejar.Cookie) – the newly-minted session cookie