Adds TODOs, puts back UmbracoRequireHttpsAttribute but in a nicer way, ensures test classes initialize the authz policies with the test scheme

This commit is contained in:
Shannon
2020-11-26 16:52:03 +11:00
parent e0665973e3
commit 8e15e265fd
12 changed files with 107 additions and 58 deletions

View File

@@ -7,6 +7,8 @@ namespace Umbraco.Web.Common.Controllers
/// </summary>
public abstract class UmbracoApiController : UmbracoApiControllerBase, IDiscoverable
{
// TODO: Should this only exist in the back office project? These really are only ever used for the back office AFAIK
protected UmbracoApiController()
{
}

View File

@@ -19,6 +19,8 @@ namespace Umbraco.Web.Common.Controllers
[UmbracoApiController]
public abstract class UmbracoApiControllerBase : ControllerBase, IUmbracoFeature
{
// TODO: Should this only exist in the back office project? These really are only ever used for the back office AFAIK
public UmbracoApiControllerBase()
{
}

View File

@@ -5,6 +5,8 @@ namespace Umbraco.Web.Common.Controllers
{
public class UmbracoApiControllerTypeCollectionBuilder : TypeCollectionBuilderBase<UmbracoApiControllerTypeCollectionBuilder, UmbracoApiControllerTypeCollection, UmbracoApiController>
{
// TODO: Should this only exist in the back office project? These really are only ever used for the back office AFAIK
protected override UmbracoApiControllerTypeCollectionBuilder This => this;
}
}