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 application that negotiates the JWT for SSO using my installed certificate. I then get the bearer token header line from Fiddler and manually put it into my Karate tests.
There's an example on how to use oauth with form fields here, and I'm looking for the equivalent version when using certificates.
Is there a clever way of getting the bearer token without manually sniffing and injecting it into the tests?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…