user_id cannot be nil
when manually triggering login failure appsec events
#3840
Labels
Milestone
user_id cannot be nil
when manually triggering login failure appsec events
#3840
Current behaviour
When a user tries to sign in using alternative sign in flows then login success/failures are tracked manually. But when this alternative login attempt fails because the user does not exist then there can be no
user_id
for theDatadog::Kit::AppSec::Events.track_login_failure
This results in an
ArgumentError user_id cannot be nil
even ifuser_exists: false
is providedExpected behaviour
if
user_exists: false
is provided, anil
value should be allowed.Steps to reproduce
Call
Datadog::Kit::AppSec::Events.track_login_failure
withuser_id: nil, user_exists: false
How does
datadog
help you?We use datadog for log management, APM and security protection
Environment
Datadog.configure ...
):The text was updated successfully, but these errors were encountered: