Skip to content

Commit

Permalink
Change MFA audit events to use authenticationType in Log
Browse files Browse the repository at this point in the history
[#154798701] https://www.pivotaltracker.com/story/show/154798701

Signed-off-by: Torsten Luh <torsten.luh@sap.com>
  • Loading branch information
tack-sap authored and torsten-sap committed Feb 14, 2018
1 parent e5c3998 commit 85fcfcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public MfaAuthenticationFailureEvent(UaaUser user, Authentication authentication
public AuditEvent getAuditEvent() {
Assert.notNull(user, "UaaUser cannot be null");
return createAuditRecord(user.getId(), AuditEventType.MfaAuthenticationFailure,
getOrigin(getAuthenticationDetails()) + ", type=" + type, user.getUsername());
getOrigin(getAuthenticationDetails()), user.getUsername(), type, null);
}

public UaaUser getUser() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public MfaAuthenticationSuccessEvent(UaaUser user, Authentication authentication
public AuditEvent getAuditEvent() {
Assert.notNull(user, "UaaUser cannot be null");
return createAuditRecord(user.getId(), AuditEventType.MfaAuthenticationSuccess,
getOrigin(getAuthenticationDetails()) + ", type=" + type, user.getUsername());
getOrigin(getAuthenticationDetails()), user.getUsername(), type, null);
}

public UaaUser getUser() {
Expand Down

0 comments on commit 85fcfcd

Please sign in to comment.