jellyfin/MediaBrowser.Controller/Net/IAuthService.cs

23 lines
663 B
C#
Raw Normal View History

#nullable enable
2020-05-20 17:07:53 +00:00
using Jellyfin.Data.Entities;
using MediaBrowser.Model.Services;
using Microsoft.AspNetCore.Http;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Controller.Net
{
public interface IAuthService
{
void Authenticate(IRequest request, IAuthenticationAttributes authAttribtues);
2020-05-20 17:07:53 +00:00
User? Authenticate(HttpRequest request, IAuthenticationAttributes authAttribtues);
/// <summary>
/// Authenticate request.
/// </summary>
/// <param name="request">The request.</param>
/// <returns>Authorization information. Null if unauthenticated.</returns>
AuthorizationInfo Authenticate(HttpRequest request);
2018-12-27 23:27:57 +00:00
}
}