taverntesting / tavern

A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
https://taverntesting.github.io/
MIT License
1.03k stars 196 forks source link

[Feature request] HTTP digest authentication #522

Open jschaeff opened 4 years ago

jschaeff commented 4 years ago

Hi there, Thanks for this great tool !

How could I make an http digest authentication for running tests with Tavern ?

The best feature would be to setup in the YAML file auth_type: digest

But maybe there is a workaround ? Do you have any idea ?

michaelboulton commented 4 years ago

This exists in requests so I don't think it would be too difficult https://python-requests.org/en/stable/user/authentication/#digest-authentication I don't think it would be an option though, probably just another key in the request (ie, use digest_auth instead of auth). I don't think there would be many use cases for wanting to switch between different kinds of authentication