Allow dynamic credentials support in globally configured hostRules #30930
Pinned
rarkins
started this conversation in
Suggest an Idea
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Tell us more.
This is an idea, to be converted into a feature request issue once it's fully baked.
Inspired by #30541 plus quite a few other requests in the past.
The idea is that we could do something like allow username/password/token to be a JS function, allowing:
Proposal:
username,passwordandtokento be a function instead of string, but only if defined inconfig.js[I think this is the only way it could feasibly be defined]hostRulesfield likerefetchCredentialsAfterwhich optionally lets you define a time period after which the token field should, be refetched/regenerated. This could be used both for tokens which expire after a short period, as well as a way to hack in token rotation/sharing to avoid rate limitsAll reactions