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

@@ -9,6 +9,9 @@ namespace Umbraco.Extensions
{
public static void AddUmbracoCommonAuthorizationPolicies(this IServiceCollection services)
{
// TODO: Should this only exist in the back office project? These really are only ever used for the back office AFAIK
// If it is moved it should only target the back office scheme
services.AddSingleton<IAuthorizationHandler, FeatureAuthorizeHandler>();
services.AddAuthorization(options =>