This add-on adds a new authentication type which uses a browser to login to the target website.
This functionality leverages Zest scripts (which may have been recorded via the ZAP Browser Extension) to login.
Client Script Authentication can be configured in the environment section of an Automation Framework plan using:
authentication:
method: "client"
parameters:
script: /path/to/RecordedAuth.zst # String, the path to the Zest login script
scriptEngine: Mozilla Zest # The script engine used for the login script
The Client or AJAX Spider will automatically login if a user is specified which is in a context that uses Client Script Authentication.
Note that this uses the Selenium integration detailed below, so any browsers launched manually will also be logged in if the Client or AJAX spider is performing an authenticated scan using Client Script Authentication.
Any browsers launched by ZAP can be configured to always first login using the details configured in a context. Note that due to restrictions in the core:
These restrictions will be addressed in a future release.
Latest code: ClientScriptBasedAuthenticationMethodType.java