xxavier05/11/2022, 12:25 PM
Works without error (which is nice but token is somehow sensitive information). I tried to fill the header using credentials but failed to do so. credentials.yml
run_histograms: type: api.APIDataSet url: https://xxx/ headers: Authorization: Token <token>
dqm_playground_token: - Content-Type: application/json - Authorization: Token <token>
It seems to boil down to the fact that it reads Dict[str, Any] and not Union[Iterable[str], AuthBase]: https://kedro.readthedocs.io/en/stable/_modules/kedro/extras/datasets/api/api_dataset.html#APIDataSet I could probably modify the APIDataSet definition to solve it by having headers = auth but I guess there is a better way. 🙂 Sorry about the naive question. Any help is appreciated.
run_histograms: type: api.APIDataSet url: https://xxx/ # Test 1 headers: dqm_playground_token # Test 2 headers: - dqm_playground_token # More tests