You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
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);
|
|
}
|
|
}
|