Skip to content
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

How to generate HMAC in Authorization header #282

Open
swabha opened this issue May 19, 2018 · 0 comments
Open

How to generate HMAC in Authorization header #282

swabha opened this issue May 19, 2018 · 0 comments

Comments

@swabha
Copy link

swabha commented May 19, 2018

Hi
I am having a ball with pyresttest and it pummels Java to the ground! Great work guys! My YAMLs were working just fine until the dev team introduced HMAC into the midst. So now I need to generate HMAC as part of an "X-signature:" header when sending out the request which is essentially a function call taking in parameters like current date and the POST bytes of the request-->
hmac.new(, <post_data>, , hashlib.sha256).hexdigest()

How do I make this function call from my YAML?

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

No branches or pull requests

1 participant