Skip to content

Add support for authorization token, now it's possible to get token f…#321

Closed
gerasghulyan wants to merge 2 commits into
willnorris:mainfrom
gerasghulyan:feuture/add-auth-header-support
Closed

Add support for authorization token, now it's possible to get token f…#321
gerasghulyan wants to merge 2 commits into
willnorris:mainfrom
gerasghulyan:feuture/add-auth-header-support

Conversation

@gerasghulyan
Copy link
Copy Markdown

…rom request and put in the request header to get an image of authorization required

…rom request and put in the request header to get an image of authorization required
@willnorris
Copy link
Copy Markdown
Owner

Does this really need to be per-request for your use case? What if it were configured as a command line flag to imageproxy? Something like:

imageproxy -passRequestHeader X-AUTH-TOKEN

which would then pass along the X-AUTH-TOKEN header for all requests that have a value for that. That would then be a bit more of a general solution that could be used for things other than auth.

@gerasghulyan
Copy link
Copy Markdown
Author

gerasghulyan commented Nov 5, 2021 via email

…e - imageproxy -passRequestHeader X-AUTH-TOKEN
@willnorris willnorris closed this in d94e561 Nov 5, 2021
@willnorris
Copy link
Copy Markdown
Owner

I made a few small changes like supporting multiple headers, and merged this as d94e561. Thanks for the contribution!

@gerasghulyan
Copy link
Copy Markdown
Author

Cool, thank you.

vetler pushed a commit to vetler/imageproxy that referenced this pull request Apr 11, 2025
Add a new passRequestHeaders field to Proxy that identifies headers to
pass from inbound request to remote servers.  Also add associated flag
to imageproxy CLI.

This is initially added to support remote servers that require an
authorization token.

Fixes willnorris#321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants