mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using MediaBrowser.Model.Services;
|
|
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(object requestContext);
|
|
|
|
/// <summary>
|
|
/// Gets the authorization information.
|
|
/// </summary>
|
|
/// <param name="requestContext">The request context.</param>
|
|
/// <returns>AuthorizationInfo.</returns>
|
|
AuthorizationInfo GetAuthorizationInfo(IRequest requestContext);
|
|
|
|
/// <summary>
|
|
/// Gets the authorization information.
|
|
/// </summary>
|
|
/// <param name="requestContext">The request context.</param>
|
|
/// <returns>AuthorizationInfo.</returns>
|
|
AuthorizationInfo GetAuthorizationInfo(HttpRequest requestContext);
|
|
}
|
|
}
|