Is it possible to allow us to use different headers instead of just the Authorization? thanks and great module!

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mjgruta created an issue. See original summary.

mjgruta’s picture

StatusFileSize
new2.34 KB

Created a patch that allows you to override the header key.

mjgruta’s picture

Status: Active » Needs review
reinholdschachner’s picture

StatusFileSize
new3.69 KB
new1.97 KB

Hi!

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.

eidoscom made their first commit to this issue’s fork.

eidoscom’s picture

Status: Needs review » Reviewed & tested by the community

It is working for me.

bryanmanalo’s picture

StatusFileSize
new4.14 KB

I 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.

atropoides’s picture

The patch from #8 3188409-7-custom-header.patch worked 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.

yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar

yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Reviewed & tested by the community » Fixed

Committed & pushed to 2.0.x branch

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.