Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugins to get data from NASA, with examples #769

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

reidsunderland
Copy link
Member

@reidsunderland reidsunderland commented Oct 11, 2023

A poll plugin to poll NASA's CMR API, and an after_accept plugin that uses a username + password to login to https://urs.earthdata.nasa.gov and generate/retrieve a bearer token for the account and add it to the credentials DB for every baseUrl processed by the plugin. The bearer tokens expire every 90 days, so it would be inconvenient to put the tokens in credentials.conf and update manually every 90 days.

Copy link
Contributor

@petersilva petersilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! The comments are really helpful/explanatory... I really like the idea of modifying the credentials db to include the bearer token... Probably something we can use elsewhere.

@petersilva petersilva merged commit f1d7697 into v03_wip Oct 11, 2023
38 of 42 checks passed
@reidsunderland
Copy link
Member Author

Thanks :) I thought it was a good example that should be in the public repo.

I really wanted to avoid re-implementing HTTP downloading code to use cookies like I did for the v2 version, so I'm happy the bearer token worked

@petersilva petersilva deleted the v03_wip_nasa_plugins branch October 23, 2023 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants