Skip to content

Commit

Permalink
Add NotificationUsername & ClientName to authentication failure (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragkrishna authored Sep 9, 2024
1 parent 4a50fa2 commit 1927ff2
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 @@ -46,6 +46,8 @@ public async Task OnEvent(AuthenticationRequestEventArgs eventArgs)
dataObject[nameof(eventArgs.DeviceId)] = eventArgs.DeviceId ?? string.Empty;
dataObject[nameof(eventArgs.DeviceName)] = eventArgs.DeviceName ?? string.Empty;
dataObject[nameof(eventArgs.RemoteEndPoint)] = eventArgs.RemoteEndPoint ?? string.Empty;
dataObject["NotificationUsername"] = eventArgs.Username ?? string.Empty;
dataObject["ClientName"] = eventArgs.App ?? string.Empty;

await _webhookSender.SendNotification(NotificationType.AuthenticationFailure, dataObject)
.ConfigureAwait(false);
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ See [Templates](Jellyfin.Plugin.Webhook/Templates) for sample templates.
- Playback client name
- Client
- Playback client name
- App
- client name in Authentication Failure
- RemoteEndPoint
- IP Address of client

Expand Down

0 comments on commit 1927ff2

Please sign in to comment.