Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteEndPoint variable not avaiable on AuthenticationFailure event #295

Open
alexbcberio opened this issue Oct 19, 2024 · 0 comments
Open

Comments

@alexbcberio
Copy link

I want to get notified when someone fails authenticated using Gotify, I am using the Gotify AuthenticationFailure template.

If I try to log in setting a incorrect password I get the notification, but the RemoveEndPoint variable is not being set. Here's a screenshot of the notification:

authentication failure notification on Gotify

As you can appreciate there is no IP address, I have already verified that the template is correctly set up.

{
    "extras": {
        "client::display": {
            "contentType": "text/markdown"
        }
    },
    "title": "🚫 Authentication Failure 🚫",
    "message": "**User:** {{Username}}\n\n**Client:** {{App}}\n\n**Device:** {{DeviceName}} \n\n**Client IP:** {{RemoteEndPoint}}",
    "priority": {{Priority}}
}

I check "Send All Properties (ignores template)" on the plugin and open the logs after triggering the event to see the request (obviously fails).

[17:16:50] [INF] Authentication request for <redacted> has been denied (IP: XXX.XXX.X.XXX).
[17:16:50] [WRN] Notification failed with POST request to https://<redacted>/message?token=<redacted>: {"ServerId":"<redacted>","ServerName":"<redacted>","ServerVersion":"10.9.11","ServerUrl":"","NotificationType":"AuthenticationFailure","App":"Jellyfin Web","Username":"<redacted>","UserId":"00000000000000000000000000000000","AppVersion":"10.9.11","DeviceId":"<redacted>","DeviceName":"Chrome","Priority":8}

The RemoteEndPoint variable is not available in all properties, so I guess something is wrong in the plugin itself.

PS, I am running Jellyfin over Docker with nginx as a reverse proxy using the template on Jellyfin docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant