Bearer token API
Posted: Mon Sep 11, 2023 1:44 pm America/New_York
I noticed that an API has been set up for managing earth data bearer tokens which is described here:
https://urs.earthdata.nasa.gov/documentation/for_users/user_token
I'm having trouble getting the /api/users/tokens request to work even when using credentials that work fine when I log into earthdata:
curl --request GET --url https://uat.urs.earthdata.nasa.gov/api/users/tokens --header 'Authorization: Basic alaroy:my-password'
returns
Invalid credentials
Any idea what I'm doing wrong, please?
Also - Has anybody published scripts that will automatically update your token? I'd prefer to not have inherently unreliable humans (like myself) remembering to do it every 90 days...
-Andrew L.
https://urs.earthdata.nasa.gov/documentation/for_users/user_token
I'm having trouble getting the /api/users/tokens request to work even when using credentials that work fine when I log into earthdata:
curl --request GET --url https://uat.urs.earthdata.nasa.gov/api/users/tokens --header 'Authorization: Basic alaroy:my-password'
returns
Invalid credentials
Any idea what I'm doing wrong, please?
Also - Has anybody published scripts that will automatically update your token? I'd prefer to not have inherently unreliable humans (like myself) remembering to do it every 90 days...
-Andrew L.