You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to allow custom AuthBase classes with something like issubclass(auth_type, requests.auth.AuthBase)? Right now the plugin hard
codes the available classes
Is it possible to pass custom headers using the snakemake_storage_plugin_http?
I'm trying to download files from a server that uses an API key in the header
for authentication (I have no control over this).
I've tried variations of
storage.http(url_to_get,headers=request_headers)
andpassing a
requests.get
object but it doesn't work.The
auth
argument says it needs a request.auth subclass. I can do this inpython:
Would it be possible to allow custom AuthBase classes with something like
issubclass(auth_type, requests.auth.AuthBase)
? Right now the plugin hardcodes the available classes
snakemake-storage-plugin-http/snakemake_storage_plugin_http/__init__.py
Lines 44 to 49 in 41e3eb5
Maybe there's an easier way?
The text was updated successfully, but these errors were encountered: