-1

The only example for oauth is https://github.com/intuit/karate/blob/master/karate-demo/src/test/java/demo/oauth/oauth2.feature

which is for the password flow are their any examples for the auth code flow or better still auth code with pkce?

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248
mcrobbj
  • 7
  • 2

1 Answers1

0

I feel such examples are not needed, because Karate is simple - you can make HTTP calls including URL-encoded forms and use the responses for future calls.

So it completely depends on your environment and the specific auth flow.

Do look at the other examples - and here are a couple of answers that may give you ideas:

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

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

Also, no one has contributed such an example. Perhaps you can once you figure it out :)

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248
  • I dont think there is anything to figure out, either karate copes with redirects or it doesnt. – mcrobbj Aug 09 '21 at 08:28
  • @mcrobbj you never mentioned redirects, so maybe this answers your question: https://stackoverflow.com/a/52214630/143475 - if not please assume that karate is not the tool for you, so look for another one. or contribute code, it is open source. – Peter Thomas Aug 09 '21 at 09:20