-1

I am unable to solve below issue

error : com.intuit.karate : karateexception , response:missing mandatory digest value

while i am hitting service through postman giving 200 OK success response but the same service/end point placed in my script and executed through karate frame work i am facing above issue.

  • @PeterThomas you mean it is not possible to implement digest auth in karate? – Chandu Jonnadula Aug 14 '20 at 12:15
  • if is there any way to implement please help me otherwise i will look into Rest assured frame work – Chandu Jonnadula Aug 14 '20 at 12:16
  • 1
    please try to ask a better question: https://stackoverflow.com/help/how-to-ask – Peter Thomas Aug 14 '20 at 12:16
  • oh yes, REST-assured may be a much better solution for you. or postman, since you are able to get it working – Peter Thomas Aug 14 '20 at 12:16
  • @PeterThomas can you please tell me the what is the difficulty in digest authentication in karate frame work? – Chandu Jonnadula Aug 14 '20 at 12:23
  • I have no idea based on your question. see if you can follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue - else wait for someone else to answer or you can switch to Postman, it is awesome – Peter Thomas Aug 14 '20 at 12:25
  • postman is useful for manual testing , to automate micro services it won't useful i think so. – Chandu Jonnadula Aug 14 '20 at 12:27
  • REST-assured is the perfect choice for you then. it will digest everything – Peter Thomas Aug 14 '20 at 12:27
  • Hi Chandu, i recomend you choose a smaller more descriptive title. Also it would help if you could add the endpoint and how are you calling it in postman (except for sensible information like passwords) and how are you calling it using the script. – Sr.PEDRO Aug 14 '20 at 13:07

1 Answers1

0

There is no built-in support for HTTP digest auth in Karate. But most teams implement this using custom code, for example look at the JWT example:

https://stackoverflow.com/a/52205655/143475

Peter Thomas
  • 47,282
  • 14
  • 68
  • 196