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
-
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
,password
andtoken
to be a function instead of string, but only if defined inconfig.js
[I think this is the only way it could feasibly be defined]hostRules
field likerefetchCredentialsAfter
which 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 limitsBeta Was this translation helpful? Give feedback.
All reactions