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

Support Auth extension #267

Open
vprivat-ads opened this issue Jun 20, 2024 · 2 comments
Open

Support Auth extension #267

vprivat-ads opened this issue Jun 20, 2024 · 2 comments
Labels
[crate] cli stac-cli [crate] extensions stac-extensions enhancement New feature or request

Comments

@vprivat-ads
Copy link

It would be great to have authentication support in stac-cli, just like stac-browser is doing with radiantearth/stac-browser#81 and https://github.com/radiantearth/stac-browser/blob/main/docs/options.md#authconfig

For example, to access an API Key protected STAC instance, I'd like to do something that would like this:

stac search --auth-type=apiKey --auth-in=header --auth-name=x-api-key <HREF>

@gadomski
Copy link
Member

For this example:

stac search --auth-type=apiKey --auth-in=header --auth-name=x-api-key <HREF>

How would you want to supply to key itself? Environment variable?

@vprivat-ads
Copy link
Author

I would be fine with any solution. I could imagine passing it on the command line, use an environment variable, or having to enter it interactively in the terminal.

@gadomski gadomski removed their assignment Sep 5, 2024
@gadomski gadomski added [crate] extensions stac-extensions and removed [crate] core stac labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[crate] cli stac-cli [crate] extensions stac-extensions enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants