We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! I want to add a header to every request: "X-Auth-Token: header_value" To do this in the file dict.json I add:
"restler_custom_payload_header": { "X-Auth-Token": [ "header_value" ] },
Can I specify that the header_value be the token value from the authentication script I'm using?
The text was updated successfully, but these errors were encountered:
You might be able to use a custom value generator for this. I have not tried it but it might work.
def get_token() -> str: <your auth code here> def gen_token(**kwargs): while True: yield get_token() value_generators = { 'restler_custom_payload_header': { 'X-Auth-Token': gen_token } }
You would then point to the custom value generator in your engine settings file:
"custom_value_generators": "/mnt/custom_value_generators.py"
Sorry, something went wrong.
No branches or pull requests
Description
Hello!
I want to add a header to every request: "X-Auth-Token: header_value"
To do this in the file dict.json I add:
Can I specify that the header_value be the token value from the authentication script I'm using?
The text was updated successfully, but these errors were encountered: