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

Can't get Discord notifications for Authentication Success/Fails to work #224

Closed
HouseIndoril opened this issue Apr 7, 2024 · 1 comment

Comments

@HouseIndoril
Copy link

I initially tacked on my $0.02 to #177, which was then closed in reference to this from January of 2023. Given we have multiple individuals reporting it doesn't work as recently as yesterday, there might need to be some updated documentation posted/other attention if this feature is expected to be working on the most recent branches of Jellyfin and the Webhook Plugin.

I have 2 existing notifications working for playback stop/start. Those worked perfect from the start, no extra messing with logging.json was required to get those to work, but I did modify my logging.json file according to the instructions to no effect.

Not really sure where to start with this one. I'm not terribly proficient with the templates so if there's a more fleshed out template I can use, that'd be great.

Here's my logging.json file.

    "Serilog": {
        "MinimumLevel": {
            "Default": "Information",
            "Override": {
                "Microsoft": "Warning",
                "System": "Warning",
                "Jellyfin.Plugin.Webhook": "Debug"
            }
        },
        "WriteTo": [
            {
                "Name": "Console",
                "Args": {
                    "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}"
                }
            },
            {
                "Name": "Async",
                "Args": {
                    "configure": [
                        {
                            "Name": "File",
                            "Args": {
                                "path": "%JELLYFIN_LOG_DIR%//jellyfin.log",
                                "fileSizeLimitBytes": 10485700,
                                "rollOnFileSizeLimit": true,
                                "retainedFileCountLimit": 10,
                                "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
                            }
                        }
                    ]
                }
            }
        ]
    }
}

I can see failed login attempts in the jellyfin application logs but it seems the plugin is simply unaware of them.

[2024-04-07 11:49:33.934 -04:00] [ERR] Error authenticating with provider "Default"
MediaBrowser.Controller.Authentication.AuthenticationException: Specified user does not exist.
   at Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser)
   at Jellyfin.Server.Implementations.Users.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser)
[2024-04-07 11:49:33.937 -04:00] [INF] Authentication request for "lalalala" has been denied (IP: "192.168.2.3").
[2024-04-07 11:49:33.938 -04:00] [ERR] Error processing request: "Invalid username or password entered". URL "POST" "/Users/authenticatebyname"
@crobibero
Copy link
Member

This is a duplicate issue. The fix is in 10.9, not 10.8.

@crobibero crobibero closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2024
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

2 participants