mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2024-11-27 00:00:28 +00:00
Add NotificationUsername & ClientName to authentication failure (#284)
This commit is contained in:
parent
4a50fa2416
commit
1927ff2746
@ -46,6 +46,8 @@ public class AuthenticationFailureNotifier : IEventConsumer<AuthenticationReques
|
|||||||
dataObject[nameof(eventArgs.DeviceId)] = eventArgs.DeviceId ?? string.Empty;
|
dataObject[nameof(eventArgs.DeviceId)] = eventArgs.DeviceId ?? string.Empty;
|
||||||
dataObject[nameof(eventArgs.DeviceName)] = eventArgs.DeviceName ?? string.Empty;
|
dataObject[nameof(eventArgs.DeviceName)] = eventArgs.DeviceName ?? string.Empty;
|
||||||
dataObject[nameof(eventArgs.RemoteEndPoint)] = eventArgs.RemoteEndPoint ?? 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)
|
await _webhookSender.SendNotification(NotificationType.AuthenticationFailure, dataObject)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
@ -85,8 +85,6 @@ See [Templates](Jellyfin.Plugin.Webhook/Templates) for sample templates.
|
|||||||
- Playback client name
|
- Playback client name
|
||||||
- Client
|
- Client
|
||||||
- Playback client name
|
- Playback client name
|
||||||
- App
|
|
||||||
- client name in Authentication Failure
|
|
||||||
- RemoteEndPoint
|
- RemoteEndPoint
|
||||||
- IP Address of client
|
- IP Address of client
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user