2013-02-27 05:24:45 +06:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
using System.Web.Http;
|
|
|
|
|
|
using Umbraco.Core.Configuration;
|
|
|
|
|
|
using Umbraco.Web.Security;
|
2013-08-07 19:28:32 +10:00
|
|
|
|
using Umbraco.Web.WebApi.Filters;
|
2013-02-27 05:24:45 +06:00
|
|
|
|
using umbraco.BusinessLogic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.WebApi
|
|
|
|
|
|
{
|
2013-10-15 18:46:44 +11:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A base controller that ensures all requests are authorized - the user is logged in.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// This controller will also append a custom header to the response if the user is logged in using forms authentication
|
|
|
|
|
|
/// which indicates the seconds remaining before their timeout expires.
|
|
|
|
|
|
/// </remarks>
|
2014-01-15 13:17:38 +11:00
|
|
|
|
[IsBackOffice]
|
2013-10-15 18:46:44 +11:00
|
|
|
|
[UmbracoUserTimeoutFilter]
|
2013-02-27 05:24:45 +06:00
|
|
|
|
[UmbracoAuthorize]
|
2016-03-16 14:52:40 +01:00
|
|
|
|
[DisableBrowserCache]
|
2013-02-27 05:24:45 +06:00
|
|
|
|
public abstract class UmbracoAuthorizedApiController : UmbracoApiController
|
|
|
|
|
|
{
|
2013-04-30 16:43:59 -10:00
|
|
|
|
protected UmbracoAuthorizedApiController()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-02-10 10:21:30 +01:00
|
|
|
|
protected UmbracoAuthorizedApiController(UmbracoContext umbracoContext) : base(umbracoContext)
|
2013-04-30 16:43:59 -10:00
|
|
|
|
{
|
|
|
|
|
|
}
|
2016-02-10 10:21:30 +01:00
|
|
|
|
|
|
|
|
|
|
protected UmbracoAuthorizedApiController(UmbracoContext umbracoContext, UmbracoHelper umbracoHelper) : base(umbracoContext, umbracoHelper)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2013-07-31 17:08:56 +10:00
|
|
|
|
|
2013-02-27 05:24:45 +06:00
|
|
|
|
}
|
|
|
|
|
|
}
|