ASFSession#
Description#
This class extends requests.session to provide convenient ASF-specific authorization options. ASFSession is a subclass of Session. More information can be found here
Methods#
auth_with_creds()#
Authenticates the session (self) using Earthdata Login username/password credentials.
args:
- username: Earthdata Login username
 - password: Earthdata Login password
 
returns:
- returns self for convenience
 
auth_with_token()#
Authenticates the session (self) using an Earthdata Login Authorization: Bearer token.
args:
- token: Earthdata Login token for authenticated downloads, see Earthdata Login Tokens
 
returns:
- returns self for convenience
 
auth_with_cookiejar()#
Authenticates the session (self) using a pre-existing cookiejar.
args:
- cookies: An 
http.cookiejarcompatible object 
returns:
- returns self for convenience