APIDataSet
ease of use
#1101
Labels
Issue: Feature Request
New feature or improvement to existing feature
APIDataSet
ease of use
#1101
Description
Howdy team!
I was working with the
APIDataSet
recently and had two issues out of the box.1. Specifying the
auth
keyword argument in yamlThe
requests
library expects theauth
parameter of a request to be either aHTTPBasicAuth
or atuple
(lists are not allowed, see here in requests). At the moment, neither are possible to specify in mycatalog.yml
.From what I hear, you're already working on this (#1011). So maybe this point is moot.
2. The
auth
keyword argument andcredentials.yml
I would like to specify my
(username, password)
tuple insidecredentials.yml
. However, theAPIDataSet
'sauth
keyword wouldn't get filled in by the config loader.To get this working, you'd have to extend
APIDataSet
to have acredentials
keyword that is filled in forauth
in an upcall.It would be great to either have this by default, or even have the loader fill
auth
keywords in addition tocredentials
. Although that might have unintended consequences.Context
Hopefully this would unify the experience a bit. Right now, the
credentials
keyword in a dataset andcredentials.yml
are the main points of access to secrets. Which is probably good.Possible Implementation
I whipped up my own
APIDataSet
to solve both the problems above.Possible Alternatives
To get this working with no changes to
APIDataSet
, we'd have to implement the changes in #1011 so we can specify tuples incredentials.yml
and have the config loader fill inauth
as well.The text was updated successfully, but these errors were encountered: