intake / intake/intake-stac

rasterio driver - authentication

Open
#46 1 comment 0 reactions 0 assignees View on GitHub
discussion enhancement
Dominant language
Python
Stars
113
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I really like intake-stac and together with xpublish it becomes a very powerful solution :-)

1. Open Assets

The example shown in the notebook using Landsat data @AWS is great. The assets are freely available and thus rasterio simply accesses those resources using the href

2. Assets requiring authentication

I've got a use-case where the assets require a simple authentication mechanism. With such cases, I usually update the href for rasterio with:

```python
def get_vsi_url(enclosure, username, api_key):


parsed_url = urlparse(enclosure)

url = '/vsicurl/%s://%s:%s@%s/api%s' % (list(parsed_url)[0],
username,
api_key,
list(parsed_url)[1],
list(parsed_url)[2])

return url
```
Would such an approach be possible with intake-stac ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.