Ok this is really cool i just read through the documentation and tried it out. I used the plugin to do the test - and it worked. However, I am still having issues. Let me give you some background:
- openID used to go from
example.com -> okta(302 redirect with access token on URL) ->
example.com (takes access_token from url and sets it to storage, so can send Authorization: bearer header)
-
example.com session management is Authorization: Bearer <access_token from okta>
- /api/graphQL is the only endpoint on
example.com that requires auth, and needs the authorization: bearer token. However, other pages will render differently based on if you have a authorization bearer header. All the data comes from the graphQL API
Issues:
1. When i attempt to put a verification poll in the authentication test context, it zeros it out when i push test again. So i can't test this well. I am also setting a poll verificaiton every 1 second in my other context to the graphQL endpoint and i don't actually see any of my poll requests in the "history" tab so not sure why that is either.
2. Session management with HTTP headers in zap seems to be where i am failing. Can't quite figure that out. I tried this:
Authorization
Bearer {%url.access_token%}
For some reason this also gets reset. Maybe because i am configuring "Auto-detect authentication"?
3. attempting to run graphQL scan in automation framework to test auth. Once i start job can't figure out how to stop.