jellyfin/MediaBrowser.Controller/Net/IAuthService.cs

23 lines
663 B
C#
Raw Normal View History

#nullable enable
2020-05-20 19:07:53 +02:00
using Jellyfin.Data.Entities;
using MediaBrowser.Model.Services;
using Microsoft.AspNetCore.Http;
2018-12-28 00:27:57 +01:00
namespace MediaBrowser.Controller.Net
{
public interface IAuthService
{
void Authenticate(IRequest request, IAuthenticationAttributes authAttribtues);
2020-05-20 19:07:53 +02: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-28 00:27:57 +01:00
}
}