-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional headers for fetch_jwk #397
Add optional headers for fetch_jwk #397
Conversation
Why do you need this? |
In my current project I have the use-case where I need to send a custom header along with the request to the keystore otherwise it gets blocked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Only push changes related to the feature. Reordering imports seems to have been done by the editor and makes reviewing difficult.
- You also have to accommodate the browser runtime as well
- Tests are needed
You're absolutely right, I apologize and can fix that easily
I followed the implementation of the
I followed the implementation of the |
Is the node-specific http(s).agent option applicable to browser runtime using fetch? No. Tests should be added in |
This might be a poor text-to-real-language translation, but do I detect sarcasm here?
Yes, I had already found this file, but couldn't find a mention of the agent option here. As I said, I found the tests quite hard to grok, so having a test for the agent option there would probably make things easier for me to implement. I would really appreciate some guidance. |
A tiny bit, yeah. The
So it does not apply to the other runtime.
There are no |
Ah, ok, now I see, this was a question of RTFM for me. So, the sarcasm was valid hehe, my apologies. ;)
Ok, thank you ;) |
Add optional headers to browser fetch as well
Ok, I pushed my last changes. I hope everything is in order now. |
Similar to the
agent
option, this simply adds optional http headers to be sent with the fetch_wks http request.