I am writing a python client to test a webapp using zap client library. As there was no json based auth method supported in stable zap release I am now using live zap container.
in python client, I have tried following thing:
login_config_params = ''.join(("loginUrl=https://x.x.x.x/login/&loginRequestData=",
urllib.parse.quote_plus("{\"username\":\"xxxxx\",\"password\":\"xxxxx\"}")))
zap.authentication.set_authentication_method(context_id, "jsonBasedAuthentication", authmethodconfigparams=login_config_params, apikey=apikey)
when this executes I don't see any logs in container regarding successfull setup.
Please help me to check if this has been okay and ready to go ahead
Working out if authentication is set up correctly can be tricky when just using the API.
I'd recommend using the ZAP UI for testing as that allows you to see whats going on more easily - you can still use the API to configure ZAP but you can also see the requests and responses which makes debugginf easier.