twitter-archive / diffy

Find potential bugs in your services with Diffy
https://twitter.com/diffyproject
Apache License 2.0
3.83k stars 368 forks source link

Does diffy support cookies? #23

Closed diffyuser closed 4 years ago

diffyuser commented 8 years ago

I've set up diffy server and tried to use curl with cookies file(cookies from primary, secondary and candidate) to main proxy, e.g.:

curl -b cookies.txt localhost:31900

Actually no luck, it doesn't seem that cookies were applied, and responses look like i've not passed authentication.

Does diffy support cookies or whethere there is any convinient way to pass authentication, as far as i need to be logged in befor performing any actions?

sukalpomitra commented 8 years ago

I do have a similar question too.All of our apis would need an accessToken to be set in the headers. Multicasting will result in 401 in 2 of the servers.

sukalpomitra commented 8 years ago

@diffyuser I have added support to pass different header value pairs to the different servers. Its in my forked repository. Also if your cookies key value pairs are same for all the servers then you dont need my code. You can pass the cookie key value pairs as --H "userrole:admin"