Closed (fixed)
Project:
Feeds HTTP Auth Fetcher
Version:
1.0.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2020 at 06:53 UTC
Updated:
13 Feb 2024 at 15:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mjgruta commentedCreated a patch that allows you to override the header key.
Comment #3
mjgruta commentedComment #4
reinholdschachner commentedHi!
Thanks for the patch. It didn't work for me though and I made some fixes to it. Now the header key and token should be handled correctly and if the user leaves the key empty, the default Authentication header ist sent.
Comment #7
eidoscomIt is working for me.
Comment #8
bryanmanalo commentedI am having an issue with this if used together with the patch from:
https://git.drupalcode.org/project/feeds_http_auth_fetcher/-/merge_reque...
I had to replace:
$response = $this->get($feed->getSource(), $sink, $cache_key,$feed->getConfigurationFor($this)['token']);
with this
$response = $this->get($feed->getSource(), $sink, $this->getCacheKey($feed), $feed->getConfigurationFor($this)['token']);
Not sure how to update MRs as of this point.
Comment #9
atropoidesThe patch from #8
3188409-7-custom-header.patchworked for me together with the patch from issue #3311889. But I'm not sure how to tackle this, first issue #3311889 has to be merged before we could add these changes to the MR 7.Comment #10
yogeshmpawarComment #12
yogeshmpawarCommitted & pushed to 2.0.x branch