Commit Graph

36330 Commits

Author SHA1 Message Date
Shannon
8e15e265fd Adds TODOs, puts back UmbracoRequireHttpsAttribute but in a nicer way, ensures test classes initialize the authz policies with the test scheme 2020-11-26 16:52:03 +11:00
Shannon
e0665973e3 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6666-auth-policies
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Web.BackOffice/Extensions/BackOfficeServiceCollectionExtensions.cs
#	src/Umbraco.Web.Common/Filters/UmbracoBackOfficeAuthorizeFilter.cs
#	src/Umbraco.Web.Common/Runtime/AspNetCoreComposer.cs
2020-11-25 11:55:16 +11:00
Shannon Deminick
425c89744c Merge pull request #9415 from rustybox/netcore/feature/msdi-remove-composition
Netcore: Replace Composition with UmbracoBuilder
2020-11-25 11:34:33 +11:00
Paul Johnson
7e9a13a4ab Register instances instead of factory method with discard. 2020-11-24 12:20:05 +00:00
Paul Johnson
633c391f85 Merge branch 'netcore/netcore' into netcore/feature/msdi-remove-composition 2020-11-24 12:05:32 +00:00
Paul Johnson
61a4f3f6c6 Always boot for RelationRepository tests
If we don't boot tests can fail based on the point at which IPublishedSnapshotService is first resolved.

At runtime it is resolved by the NuCacheComponent as soon as CoreRuntime is resolved during UseUmbracoCore.

By doing this the integration tests match the real application lifecycle.
2020-11-24 12:03:10 +00:00
Bjarke Berg
84237d4a57 Remove Security from UmbracoContext (#9392)
* Remove Security from UmbracoContext

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Removing files reference from csproj

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-11-24 12:52:48 +01:00
Paul Johnson
5268f9d7f0 Resolve review comments 2020-11-24 09:37:52 +00:00
Bjarke Berg
4a7f6d3cc1 Migrated partial views (#9420)
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-11-24 09:05:16 +01:00
Shannon
1f048f0599 some cleanup of handlers that check multiple query strings 2020-11-24 12:02:31 +11:00
Shannon
f313a4f583 some cleanup of handlers that check multiple query strings 2020-11-24 11:56:53 +11:00
Shannon
5619b63ee4 delete file 2020-11-24 00:54:03 +11:00
Shannon
40d75f88f3 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6666-auth-policies
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
#	src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeFilter.cs
2020-11-24 00:46:38 +11:00
Shannon
bde025f661 streamlines the naming of the content/media permissions handlers 2020-11-24 00:42:52 +11:00
Shannon
4dbfe5867b migrates the custom content persmission helper and media permissions helper checks to authz policies and cleans up that code/class/namespaces 2020-11-24 00:37:26 +11:00
Paul Johnson
7abf9466c0 Merge branch 'netcore/netcore' into netcore/feature/msdi-remove-composition 2020-11-23 12:29:00 +00:00
Paul Johnson
8ca3f602e2 Further cleanup of AddUmbracoCore
IUmbracoBootPermissionChecker is irrelevant in .net core as there's no concept of full trust
Allow container to create DbProviderFactoryCreator with a factory method.
2020-11-23 12:22:34 +00:00
Bjarke Berg
ebe643e30b Merge pull request #9412 from AndyButland/feature/membership-helper-facade
NetCore: Creates abstraction for membership helper and migrates controllers now dependent on it.
2020-11-23 13:15:26 +01:00
Shannon
c34540cb06 Migrates EnsureUserPermissionForContentAttribute to authz policies 2020-11-23 22:43:41 +11:00
Paul Johnson
a62079d794 Use OptionsMonitorAdapter over AspNetCoreHostingEnvironmentWithoutOptionsMonitor
Rollback Serilog setup as I broke BASEDIR env var
2020-11-23 10:27:13 +00:00
Bjarke Berg
94f73ef5d9 Merge pull request #9421 from umbraco/netcore/feature/property-editors-migration-from-infrastructure
Netcore: Migration of Property Editor classes from Umbraco.Infrastructure to Core
2020-11-23 10:06:43 +01:00
Bjarke Berg
a9eb5c3428 Fix issue found in test. Return IActionResult instead of HttpResponseMessage 2020-11-23 08:11:01 +01:00
Bjarke Berg
d2a57496e5 Fix issue found in test. Return IActionResult instead of HttpResponseMessage 2020-11-23 08:08:52 +01:00
Andy Butland
09cfe5f055 Fixed typo in class name. 2020-11-22 09:51:57 +01:00
Paul Johnson
73bd42a916 Fix parameter name for IUmbracoBuilder 2020-11-21 15:43:01 +00:00
Paul Johnson
0241649f7f Cleanup AddUmbraco & AddUmbracoCore 2020-11-21 15:22:24 +00:00
Paul Johnson
5e2de50382 Fix legacy tests 2020-11-20 12:32:56 +00:00
Paul Johnson
39657dea6d UmbracoBuilder now requires TypeLoader via ctor 2020-11-20 12:18:25 +00:00
Paul Johnson
5b1ccb0659 Remove the crazy Func param on AddUmbracoCore 2020-11-20 11:13:53 +00:00
Paul Johnson
4520b2ab21 Fix for failing test RelationRepositoryTests.Get_Paged_Child_Entities_By_Parent_Id 2020-11-20 09:44:49 +00:00
Shannon
65a11a4e26 Adds notes 2020-11-20 15:40:20 +11:00
Shannon
eeb6c79b14 After testing, removes notes 2020-11-20 15:37:18 +11:00
Shannon
7757447244 Migrates UmbracoBackOfficeAuthorizeAttribute to authz policies and adds notes/questions 2020-11-20 15:32:36 +11:00
Shannon
84c2f75a27 Adds notes, only run back office authz policies on the back office scheme 2020-11-20 14:59:08 +11:00
Shannon
e7b4c5a811 Converts FeatureAuthorize to authz policy 2020-11-20 12:40:29 +11:00
Shannon
f32399292e Migrates UserGroupAuthorizationAttribute to authz policies 2020-11-20 12:23:09 +11:00
Shannon
9c5ce631a9 removes UmbracoWebApiRequireHttpsAttribute since we dont' need it 2020-11-20 12:12:54 +11:00
Paul Johnson
daf972fc62 Closer to removing all BuildServiceProvider calls 2020-11-19 22:02:19 +00:00
Paul Johnson
8b97ce69b1 Removed CoreRuntimeBootstrapper
Establish runtime level at run time not during service registration.
2020-11-19 20:21:45 +00:00
Paul Johnson
3672a9f2f2 Add composers via extension on UmbracoBuilder
reduce scope of CoreRuntimeBootstrapper
2020-11-19 16:20:39 +00:00
Elitsa Marinovska
7809d1501e Migrations from PropertyEditors folder without dependencies to DataValueEditor or ConfigurationEditor<TConfiguration> 2020-11-19 15:21:10 +01:00
Elitsa Marinovska
74262e18b5 Migrations from PropertyEditors/ValueConverters without dependencies to DataValueEditor or ConfigurationEditor<TConfiguration> 2020-11-19 15:12:50 +01:00
Elitsa Marinovska
790271382e Placing ConfigurationEditor to its correct (old) place 2020-11-19 15:09:25 +01:00
Shannon
6a995127b1 Migrates AdminUsersAuthorizeAttribute and DenyLocalLoginAuthorizationAttribute to authz policies 2020-11-19 23:53:04 +11:00
Shannon
29c2bca012 remove delete relation in relation controller, this is not used and shouldn't really be there if only having access to content. 2020-11-19 22:18:56 +11:00
Shannon
63fceebca0 Removes UmbracoApplicationAuthorizeAttribute and migrates usages to authz policies 2020-11-19 22:17:42 +11:00
Paul Johnson
48b61ec4c4 Simplify UmbracoBuilder setup 2020-11-19 09:12:39 +00:00
Shannon
daaade185e Removes UmbracoTreeAuthorizeAttribute and migrates usages to authz policies 2020-11-19 19:23:41 +11:00
Paul Johnson
aec25d5007 Replace Composition with UmbracoBuilder 2020-11-18 17:41:57 +00:00
Andy Butland
024b37e0e6 Added further method header comment. 2020-11-18 17:41:10 +01:00