2020-06-20 16:02:03 +00:00
|
|
|
using Microsoft.AspNetCore.Http;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
|
|
{
|
2020-06-20 16:02:03 +00:00
|
|
|
/// <summary>
|
|
|
|
/// IAuthorization context.
|
|
|
|
/// </summary>
|
2018-12-27 23:27:57 +00:00
|
|
|
public interface IAuthorizationContext
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the authorization information.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="requestContext">The request context.</param>
|
|
|
|
/// <returns>AuthorizationInfo.</returns>
|
2020-09-02 10:22:14 +00:00
|
|
|
AuthorizationInfo GetAuthorizationInfo(HttpContext requestContext);
|
2020-06-20 16:02:03 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the authorization information.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="requestContext">The request context.</param>
|
|
|
|
/// <returns>AuthorizationInfo.</returns>
|
|
|
|
AuthorizationInfo GetAuthorizationInfo(HttpRequest requestContext);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|