// <copyright file="IAuthService.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>

namespace MediaBrowser.Controller.Net
{
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Http;

    /// <summary>
    /// IAuthService.
    /// </summary>
    public interface IAuthService
    {
        /// <summary>
        /// Authenticate request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>Authorization information. Null if unauthenticated.</returns>
        Task<AuthorizationInfo> Authenticate(HttpRequest request);
    }
}
