[java-identity-provider] branch main updated: Implement a getter method for obtaining the event to log.
Codeberg
noreply at shibboleth.net
Tue Sep 15 18:33:59 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
https://codeberg.org/Shibboleth/java-identity-provider/commit/3d79f1aa99be4fd2297f3a4238a3208b0ef709e6
The following commit(s) were added to refs/heads/main by this push:
new 3d79f1aa9 Implement a getter method for obtaining the event to log.
3d79f1aa9 is described below
commit 3d79f1aa99be4fd2297f3a4238a3208b0ef709e6
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Sep 15 14:33:16 2026 -0400
Implement a getter method for obtaining the event to log.
---
.../idp/profile/audit/impl/WriteAuditLog.java | 26 ++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/audit/impl/WriteAuditLog.java b/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/audit/impl/WriteAuditLog.java
index 2e9742669..5d038a772 100644
--- a/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/audit/impl/WriteAuditLog.java
+++ b/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/audit/impl/WriteAuditLog.java
@@ -290,10 +290,9 @@ public class WriteAuditLog extends AbstractProfileAction {
if (IdPAuditFields.EVENT_TIME.equals(field)) {
record.append(dateTimeFormatter.format(Instant.now()));
} else if (IdPAuditFields.EVENT_TYPE.equals(field)) {
- assert requestContext != null;
- final Event event = requestContext.getCurrentEvent();
- if (event != null && !event.getId().equals(EventIds.PROCEED_EVENT_ID)) {
- record.append(event.getId());
+ final String event = getEvent(profileRequestContext);
+ if (event != null && !event.equals(EventIds.PROCEED_EVENT_ID)) {
+ record.append(event);
}
} else if (IdPAuditFields.PROFILE.equals(field)) {
record.append(profileRequestContext.getProfileId());
@@ -343,5 +342,24 @@ public class WriteAuditLog extends AbstractProfileAction {
protected void filter(@Nonnull final StringBuilder entry) {
}
+
+ /**
+ * Gets the Web Flow event value to log, if any.
+ *
+ * @param profileRequestContext profile request context
+ *
+ * @return event to log
+ *
+ * @since 5.3.0
+ */
+ @Nullable protected String getEvent(@Nonnull final ProfileRequestContext profileRequestContext) {
+ assert requestContext != null;
+ final Event event = requestContext.getCurrentEvent();
+ if (event != null) {
+ return event.getId();
+ }
+
+ return null;
+ }
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list