Open janekolszak opened 8 years ago
Hey @janekolszak!
I'm not terribly familiar with OAuth2 and all the different flows/grant types. But AFAIK as I remember, there is no need to do something special (like calculating hashes or cryptographic signatures).
The complexity arises from the steps a user is requested to do, e.g. for the "Authorization Code" grant: You have to follow redirects, parse HTML, log into applications, … – basically simulate the user interaction part. If your OAuth2 server does not require to run JavaScript, I don't see a reason, why you cannot build a test case with "plain" tsung (you can look for Location
headers to follow redirects, you can extract tokens from JSON and XML responses easily).
What kind of grants are you interested in?
Thanks @tisba! I'm using the Implicit Grant for my web app (https://github.com/andreassolberg/jso)
Urgs, I somehow totally missed your reply.
I don't have any examples. Most tests I do, do not test the authentication service. So we usually generate tokens (or obtain them otherwise) and use them to authenticate to the service that is actually under test.
Hi!
Thanks, Jan