af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
// <copyright file="InvalidAuthProvider.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Jellyfin.Server.Implementations.Users
|
|
{
|
|
using System.Threading.Tasks;
|
|
using Jellyfin.Database.Implementations.Entities;
|
|
using MediaBrowser.Controller.Authentication;
|
|
|
|
/// <summary>
|
|
/// An invalid authentication provider.
|
|
/// </summary>
|
|
public class InvalidAuthProvider : IAuthenticationProvider
|
|
{
|
|
/// <inheritdoc />
|
|
public string Name => "InvalidOrMissingAuthenticationProvider";
|
|
|
|
/// <inheritdoc />
|
|
public bool IsEnabled => false;
|
|
|
|
/// <inheritdoc />
|
|
public Task<ProviderAuthenticationResult> Authenticate(string username, string password)
|
|
{
|
|
throw new AuthenticationException("User Account cannot login with this provider. The Normal provider for this user cannot be found");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public Task ChangePassword(User user, string newPassword)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|