2021-05-20 20:56:59 -07:00
|
|
|
using System.Threading.Tasks;
|
2019-11-23 08:31:02 -07:00
|
|
|
using Microsoft.AspNetCore.Http;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
|
|
{
|
2020-06-15 11:49:54 -07:00
|
|
|
/// <summary>
|
|
|
|
/// IAuthService.
|
|
|
|
/// </summary>
|
2018-12-27 16:27:57 -07:00
|
|
|
public interface IAuthService
|
|
|
|
{
|
2020-06-15 11:49:54 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Authenticate request.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request">The request.</param>
|
|
|
|
/// <returns>Authorization information. Null if unauthenticated.</returns>
|
2021-05-20 20:56:59 -07:00
|
|
|
Task<AuthorizationInfo> Authenticate(HttpRequest request);
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
}
|