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) – ifTrue
use an existing kerberos TGT to authenticatedebug (
bool
, optional) – ifTrue
enable verbose debugging from requests, currently unusedsession (
requests.Session
, optional) – an activerequests.Session
to use with the queryreturn_all (
bool
, optional) – return all cookies from the authentication request
- Returns:
cookie (
http.cookiejar.Cookie
) – the newly-minted session cookie