Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Script Based Auth (Ajax Spider) #6112

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion addOns/authhelper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this add-on will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Added
- Added support for Client Script Authentication when used in conjunction with the Ajax Spider add-on.

## [0.18.0] - 2025-01-27
### Changed
Expand Down
8 changes: 6 additions & 2 deletions addOns/authhelper/authhelper.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ zapAddOn {
dependencies {
addOns {
register("spiderAjax") {
version.set(">=23.15.0")
version.set(">=23.22.0")
}
}
}
Expand All @@ -29,7 +29,7 @@ zapAddOn {
dependencies {
addOns {
register("client") {
version.set(">=0.10.0")
version.set(">=0.11.0")
}
}
}
Expand All @@ -49,6 +49,9 @@ zapAddOn {
register("selenium") {
version.set("15.*")
}
register("zest") {
version.set(">=48.1.0")
}
}
}
}
Expand All @@ -69,6 +72,7 @@ dependencies {
zapAddOn("selenium")
zapAddOn("spiderAjax")
zapAddOn("client")
zapAddOn("zest")

testImplementation(project(":testutils"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ static SessionManagementRequestDetails findSessionTokenSource(String token) {
return findSessionTokenSource(token, -1);
}

static SessionManagementRequestDetails findSessionTokenSource(String token, int firstId) {
public static SessionManagementRequestDetails findSessionTokenSource(
String token, int firstId) {
ExtensionHistory extHist = AuthUtils.getExtension(ExtensionHistory.class);
int lastId = extHist.getLastHistoryId();
if (firstId == -1) {
Expand Down
Loading