Skip to content
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
1 change: 1 addition & 0 deletions addOns/authhelper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add Authentication Report section for the log file.
- Support for step delay in Browser Based Authentication, which replaces the auth tester "demo mode".
- Support for min wait for time in Client Script Authentication.
- Allow to manage the authentication diagnostics through the GUI.

## Changed
- Now depends on minimum Common Library version 1.35.0 and Zest version 48.9.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import org.parosproxy.paros.network.HttpMessage;
import org.parosproxy.paros.view.View;
import org.zaproxy.addon.authhelper.internal.db.TableJdo;
import org.zaproxy.addon.authhelper.internal.ui.diags.AuthDiagsPanel;
import org.zaproxy.addon.commonlib.internal.TotpSupport;
import org.zaproxy.addon.commonlib.internal.TotpSupport.TotpData;
import org.zaproxy.addon.commonlib.internal.TotpSupport.TotpGenerator;
Expand Down Expand Up @@ -218,6 +219,8 @@ public void hook(ExtensionHook extensionHook) {

authDiagCollector = new AuthDiagnosticCollector();
extensionHook.addHttpSenderListener(authDiagCollector);

new AuthDiagsPanel(extensionHook);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.List;
import javax.jdo.annotations.Cacheable;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.Element;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Order;
import javax.jdo.annotations.PersistenceCapable;
Expand Down Expand Up @@ -53,6 +54,7 @@ public class Diagnostic {
private String script;

@Order(column = "NUMBER")
@Element(dependent = "true")
@Persistent(mappedBy = "diagnostic")
private List<DiagnosticStep> steps = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public String getScript() {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private int id;

@Column(name = "STEPID")
@Column(name = "STEPID", allowsNull = "false")
private DiagnosticStep step;

@Column(jdbcType = "INTEGER")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DiagnosticMessage {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private int id;

@Column(name = "STEPID")
@Column(name = "STEPID", allowsNull = "false")
private DiagnosticStep step;

private int messageId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DiagnosticScreenshot {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private int id;

@Column(name = "STEPID")
@Column(name = "STEPID", allowsNull = "false")
private DiagnosticStep step;

@Column(length = 8388608)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class DiagnosticStep {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private int id;

@Column(name = "DIAGNOSTICID")
@Column(name = "DIAGNOSTICID", allowsNull = "false")
private Diagnostic diagnostic;

@Column(length = 4096)
Expand All @@ -59,20 +59,22 @@ public class DiagnosticStep {
@Column(name = "WEBELEMENTID")
private DiagnosticWebElement webElement;

@Persistent(mappedBy = "step")
@Persistent(mappedBy = "step", dependent = "true")
private DiagnosticScreenshot screenshot;

@Order(column = "NUMBER")
@Element(dependent = "true")
@Persistent(mappedBy = "step")
private List<DiagnosticMessage> messages = new ArrayList<>();

@Persistent(table = "AUTHHELPER_DIAGNOSTIC_STEP_WEB_ELEMENTS")
@Join(column = "STEPID")
@Element(column = "WEBELEMENTID")
@Element(column = "WEBELEMENTID", dependent = "true")
@Order(column = "NUMBER")
private List<DiagnosticWebElement> webElements = new ArrayList<>();

@Order(column = "NUMBER")
@Element(dependent = "true")
@Persistent(mappedBy = "step")
private List<DiagnosticBrowserStorageItem> browserStorageItems = new ArrayList<>();

Expand Down
Loading