Audience
This document is meant for the maintainers of CMR and is considered DRAFT
Overview
Technical documentation of the types of tokens that pass thru CMR.
Tokens
Token | Source | Consumption | Example | Notes |
---|---|---|---|---|
Legacy | Legacy-Services | -H "Echo-Token: <token>" | AF14A97A-A916-B45A-B7C9-31BBB73ECB99 | To be replaced with "Heritage" tokens. |
"Heritage" | EDL | -H "ECHO-Token: <token>" -H "Authorization: Bearer <token>"? | EDL-AF14A97A-A916-B45A-B7C9-31BBB73ECB99 (?) | Name coined by tcherry and may need a new name, soon to be created by EDL |
JWT | EDL | -H "ECHO-Token: <token>" -H "Authorization: Bearer <token>" | <Base64-Text>.<Base64-Text>.<Base64-Text> | Not yet implemented by EDLÂ |
LaunchPad | idmax.nasa.gov | -H "Echo-Token: <token>" -H "Authorization: Bearer <token>" | something really long and ugly ; a SAML token | this |
Questions
- Can all tokens be sent with Echo-Token and Authorization headers?
- Do other tokens need to be documented
Token Usage
curl -H "Echo-Token: AF14A97A-A916-B45A-B7C9-31BBB73ECB99" https://cmr.sit.earthdata.nasa.gov/search/collections/
Advance Token Usage
Acting as another user in CMR(?):
curl -H "Autherization: Bearer <token>, Basic <base64-encoded-creditials>" <application>
Overview
Content Tools