developmentseed / obstore

Simple, fast integration with Amazon S3, Google Cloud Storage, Azure Storage, and S3-compliant APIs like Cloudflare R2
https://developmentseed.org/obstore
MIT License
146 stars 3 forks source link

HTTP parameter support? #82

Open drwelby opened 1 week ago

drwelby commented 1 week ago

Is it possible to fetch from an HTTPStore a path that has query parameters appended to the URL? I need to pass an authentication key as &api_key=1234 and best I can tell it's getting stripped as the target server is giving me a 401 error saying no authentication was found.

kylebarron commented 1 week ago

It's not clear to me that this is currently implemented in the Rust object_store library.

I asked in Discord and I'll let you know.

kylebarron commented 1 week ago

It is possible, however, to set default headers for each request. So this could work with server that understands those for auth (ability to set default headers is being added in https://github.com/developmentseed/obstore/pull/81)

drwelby commented 1 week ago

Thanks for checking. We also have to send other parameters too but auth gets to be the first thing to notice something missing.