Skip to content

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:

returns:

  • returns self for convenience

auth_with_token()#

Authenticates the session (self) using an Earthdata Login Authorization: Bearer token.

args:

returns:

  • returns self for convenience

auth_with_cookiejar()#

Authenticates the session (self) using a pre-existing cookiejar.

args:

  • cookies: An http.cookiejar compatible object

returns:

  • returns self for convenience