Hi All,
I am new to ZAP. I know how to get the dockerized ZAP container running on Linux (this is the system I am using to run the ZAP Docker container). I aim to do Authentication using the ZAP Docker container but am unsure of how I can do this.
Here are the points I need clarification in:
1. How can I use scan hooks to do auth? (I plan to call my API and retrieve the access token within scan-hooks.py so that I can add a header to each ZAP API request with "Authorization" : "Bearer <insert token>". Please kindly let me know what the exact commands are. Thank you!)
2. I want to run the API Scan on a list of URLs because when I set the -f openapi flag on the target URL (let's say -t
http://localhost:5000/main), ZAP is scanning all the WRONG URLs and getting a 404 error (note that my API follows OpenAPI specification). How can I specify a list of URLs and the method (POST / PUT / GET / DELETE) using the scan hooks?
Thank you!!!