Handling JWT bearer token from ADFS

后端 未结 1 648
情话喂你
情话喂你 2020-12-07 04:56

I\'m testing a web application API that do authentication against an ADFS server with X509 certificates. In order to run tests with Karate, I currently use a small .NET appl

相关标签:
1条回答
  • 2020-12-07 05:34

    Certificate support made it into 0.7.0 and you can find examples here: https://github.com/intuit/karate/tree/master/karate-demo/src/test/java/ssl

    Hope that gets you on your way, else you may need to dig into this long thread on SSL / Cert support in Karate and perhaps add a feature request: https://github.com/intuit/karate/issues/281

    One idea is if you can modify your .NET program to run as a command-line app and return the token or save it to a file, you could invoke it from Karate using Java interop, and the Runtime.getRuntime().exec(command) - you should be able to find material on the net on how to do this.

    EDIT: you can use curl ! https://stackoverflow.com/a/64352676/143475

    0 讨论(0)
提交回复
热议问题