Skip to content

Authenticating with UAT when searching for services #1223

@asteiker

Description

@asteiker

Discussed in #1197

Originally posted by eni-awowale February 6, 2026
Hi all! I am at the GES_DISC and work with @battistowx!

We use earthaccess in the Cloud Giovianni Averaging Service to query CMR for the latest version of our service so we can populate the history attribute field in our time averaged map.

When I call earthaccess.search_services(provider='GES_DISC') it returns the results from the CMR PROD query. But we are also interested in getting UAT records.

I get a RuntimeError when I explicitly try to authenticate with UAT

earthaccess.login(system=earthaccess.UAT)
earthaccess.search_services(provider='GES_DISC')

From a quick glance at services.py and api.py it looks like search_services is using my UAT edl token to query the CMR PROD API?

Maybe this is something we could investigate during the next hackday!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions