mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
25 lines
779 B
C#
25 lines
779 B
C#
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
{
|
|
/// <summary>
|
|
/// IAuthorization context.
|
|
/// </summary>
|
|
public interface IAuthorizationContext
|
|
{
|
|
/// <summary>
|
|
/// Gets the authorization information.
|
|
/// </summary>
|
|
/// <param name="requestContext">The request context.</param>
|
|
/// <returns>AuthorizationInfo.</returns>
|
|
AuthorizationInfo GetAuthorizationInfo(HttpContext requestContext);
|
|
|
|
/// <summary>
|
|
/// Gets the authorization information.
|
|
/// </summary>
|
|
/// <param name="requestContext">The request context.</param>
|
|
/// <returns>AuthorizationInfo.</returns>
|
|
AuthorizationInfo GetAuthorizationInfo(HttpRequest requestContext);
|
|
}
|
|
}
|