authentication proxy #437
-
ORIGINAL POST: #308 by @louis020393 Moved to a new discussion for future findability and categorization.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hello @louis020393! Thanks for getting in touch. Could you please explain what you are trying to do in a bit more detail? I'm wondering about your use case of submitting a proxy rather than using your earthdata credentials directly. As you note, from v0.7.0+ authentication is completed using earthaccess. The icepyx auth module you refer to is still in development and has not yet been merged into the development branch (or a released version if you're installing icepyx using pip or conda/mamba). Once it is, the only anticipated change on the user side should be improved automated authentication (i.e. you will no longer need to call The |
Beta Was this translation helpful? Give feedback.
-
def get_authenticated_session(proxies):
session = earthaccess.get_requests_https_session()
session.proxies.update(proxies)
return session Another option would be to override the def get_authenticated_session(trust):
session = earthaccess.get_requests_https_session()
session.trust_env = trust
return session |
Beta Was this translation helpful? Give feedback.
Thanks @betolink, this is helpful!
@louis020393 with the latest PR you should be able to access and update the session object directly. For example:
Let us know if that doesn't work!