Testing authentication from java api

36 views
Skip to first unread message

Se Br

unread,
Mar 7, 2025, 5:53:28 AM3/7/25
to ZAP User Group
Hi, 

I have simple java app using zap-clientapi to starting scan. I'm trying to set auth using custom script, is there any way to check from java api that request which send from zap don't have 401 error? I see only alerts, but not all requests from zap

Simon Bennetts

unread,
Mar 11, 2025, 5:51:01 AM3/11/25
to ZAP User Group
For anything related to authentication you should start here https://www.zaproxy.org/docs/authentication/

Do check all responses you can use an httpsender script.
This one alerts on error codes so could be very close to what you need?

Cheers,

Simon
Reply all
Reply to author
Forward
Message has been deleted
0 new messages