Skip to content

UserLoginFailure log username in SubjectId column instead of userid #6

@BerDuc

Description

@BerDuc

If you test a user login failure, in the AuditEntries table you will have the username both in the column SubjectIdentifier and in the column Subject. For all the other events I have a numerical identifier in the SubjectIdentifier column, so it feels weird having a username for the UserLoginFailure Event.
I searched why and found that in the UserLoginFailureEventAdapter, the line 16 look like this:
16 public ResourceActor Actor => new ResourceActor(ResourceActor.UserSubjectType, evt.Username, evt.Username);
It feels it is a mistake logging two times the Username. Is it by design? if so, why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions