< Summary - Jellyfin

Information
Class: Jellyfin.Server.Implementations.Users.InvalidAuthProvider
Assembly: Jellyfin.Server.Implementations
File(s): /srv/git/jellyfin/Jellyfin.Server.Implementations/Users/InvalidAuthProvider.cs
Line coverage
25%
Covered lines: 1
Uncovered lines: 3
Coverable lines: 4
Total lines: 30
Line coverage: 25%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 9/14/2025 - 12:09:49 AM Line coverage: 20% (1/5) Total lines: 3611/28/2025 - 12:11:11 AM Line coverage: 25% (1/4) Total lines: 30

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%210%
get_IsEnabled()100%11100%
Authenticate(...)100%210%
ChangePassword(...)100%210%

File(s)

/srv/git/jellyfin/Jellyfin.Server.Implementations/Users/InvalidAuthProvider.cs

#LineLine coverage
 1using System.Threading.Tasks;
 2using Jellyfin.Database.Implementations.Entities;
 3using MediaBrowser.Controller.Authentication;
 4
 5namespace Jellyfin.Server.Implementations.Users
 6{
 7    /// <summary>
 8    /// An invalid authentication provider.
 9    /// </summary>
 10    public class InvalidAuthProvider : IAuthenticationProvider
 11    {
 12        /// <inheritdoc />
 013        public string Name => "InvalidOrMissingAuthenticationProvider";
 14
 15        /// <inheritdoc />
 1816        public bool IsEnabled => false;
 17
 18        /// <inheritdoc />
 19        public Task<ProviderAuthenticationResult> Authenticate(string username, string password)
 20        {
 021            throw new AuthenticationException("User Account cannot login with this provider. The Normal provider for thi
 22        }
 23
 24        /// <inheritdoc />
 25        public Task ChangePassword(User user, string newPassword)
 26        {
 027            return Task.CompletedTask;
 28        }
 29    }
 30}