Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When Earthdata Login is required for EGI access, EGI requests with very long URLs, for example, those using large shapefiles, can fail if your client program (e.g. curl, wget) has not already logged in and established a session. This is a due to the nature of the OAuth2 authentication process when credentials must be provided.  In In this case, it is easy to establish a session prior to sending your request simply by sending an empty request as follows:

...

Code Block
> curl -nL -b ~/.cookies -c ~/.cookies 'https://<host>/egi/request' -o /dev/null


If a session has not already been established, this will force curl to provide credentials to Earthdata Login and then save the session cookie. Subsequent requests will submit the session cookie and thus avoid the need for further authentication until the session expires. Session expiration is specific to each EGI instance but in most cases should be at least a few hours.

...

Note: The use of CMR tokens eliminates the need to authenticate via Earthdata Login, so the same URL length limitations do not existsexist



Anchor
programmaticaccessparameters
programmaticaccessparameters
Programmatic Access Parameters

...