jellyfin/MediaBrowser.Controller/Net/IAuthorizationContext.cs

32 lines
1.0 KiB
C#
Raw Normal View History

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