Skip to content

Commit 91eeccc

Browse files
committed
authhelper: include messages' RTT in auth report
Allow to know how much time the requests are taking during the authentication. Signed-off-by: thc202 <thc202@gmail.com>
1 parent 8a7c26f commit 91eeccc

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

addOns/authhelper/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1717
- Send the referer header on verification if set on the original request.
1818
- Removed requirement to set at least one header in the GUI for Header-Based Session Management.
1919
- Include step for errors in the authentication diagnostics.
20+
- Include messages' RTT in the Authentication Report.
2021
- Browser based authentication to also support HTTP basic authentication for Firefox.
2122
- Verification rule to improve detection.
2223
- Add support for Microsoft login in Browser Based Authentication.

addOns/authhelper/src/main/zapHomeFiles/reports/auth-report-json/report.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
,"messages": [[#th:block th:each="entry, state: ${messages}" th:with="message=${helper.getHttpMessage(entry.messageId)}"][#th:block th:if="${! state.first}"],[/th:block]
100100
{[#th:block th:if="${message}"]
101101
"created": [[${entry.createTimestamp}]],
102+
"rtt": [[${message.timeElapsedMillis}]],
102103
"initiator": [[${entry.initiator}]],
103104
"requestHeader": [[${message.requestHeader.toString()}]],
104105
"requestBody": [[${message.requestBody.toString()}]],

0 commit comments

Comments
 (0)