Shannon
2f9e92eee7
Make BackOfficeClaimsPrincipalFactory not be generic, doesn't need to be, cleans up code as per rules
2020-12-03 20:30:35 +11:00
Shannon Deminick
7a719954dd
Merge pull request #9470 from umbraco/netcore/feature/2FAuth
...
Back office user updates to support OAuth and 8.9 features
2020-12-03 18:54:53 +11:00
Bjarke Berg
a00c195f26
Fix more issues with MapPath
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-12-02 08:27:37 +01:00
Bjarke Berg
d23986101b
Fix more issues with MapPath
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-12-02 08:21:17 +01:00
Shannon
0f0c50b56e
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/2FAuth
...
# Conflicts:
# src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs
# src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
# src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs
# src/Umbraco.Web.BackOffice/Controllers/MediaTypeController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Filters/DenyLocalLoginAuthorizationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/OverrideAuthorizationFilterProvider.cs
# src/Umbraco.Web.Common/Filters/UmbracoBackOfficeAuthorizeAttribute.cs
# src/Umbraco.Web.Common/Filters/UmbracoBackOfficeAuthorizeFilter.cs
2020-12-02 13:14:47 +11:00
Bjarke Berg
85c01d9905
Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
...
# Conflicts:
# src/Umbraco.Configuration/Legacy/GlobalSettings.cs
# src/Umbraco.Core/Configuration/IGlobalSettings.cs
# src/Umbraco.Core/Models/ContentBaseExtensions.cs
# src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs
# src/Umbraco.Core/Routing/DefaultUrlProvider.cs
# src/Umbraco.Core/Runtime/MainDom.cs
# src/Umbraco.Core/Services/IRuntimeState.cs
# src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs
# src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
# src/Umbraco.Infrastructure/RuntimeState.cs
# src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Tests/TestHelpers/TestObjects.cs
# src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
# src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs
# src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs
# src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
# src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
# src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Rte.cshtml
# src/Umbraco.Web/Controllers/UmbLoginController.cs
# src/Umbraco.Web/Install/Controllers/InstallController.cs
# src/Umbraco.Web/PublishedElementExtensions.cs
# src/Umbraco.Web/Runtime/WebInitialComposer.cs
# src/Umbraco.Web/UmbracoHelper.cs
# src/Umbraco.Web/UmbracoInjectedModule.cs
# src/Umbraco.Web/UrlHelperExtensions.cs
# src/Umbraco.Web/UrlHelperRenderExtensions.cs
# src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs
2020-12-01 11:34:13 +01:00
Bjarke Berg
27b44c6594
Post merge - Fix for tests
2020-12-01 09:14:46 +01:00
Bjarke Berg
3e0d52b330
Merge pull request #9428 from umbraco/netcore/task/6666-auth-policies
...
Migrate authorization filters to authorization policies
2020-12-01 08:17:04 +01:00
Shannon
20b4f55664
Fixes up a bunch of TODOs moves user manager to the back office project so we have acess to necessary services, splits apart files, removes old code, starts implementing the 2fa stuff
2020-12-01 17:24:23 +11:00
Bjarke Berg
f249553549
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/linux-paths
...
# Conflicts:
# src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs
# src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
2020-11-26 13:14:26 +01:00
Bjarke Berg
81bbfe93ce
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6666-auth-policies
2020-11-26 11:59:36 +01:00
Bjarke Berg
87b6c4852f
Merge pull request #9448 from AndyButland/feature/membership-helper-facade-2
...
NetCore: Migrated member related partial views
2020-11-26 06:38:11 +01:00
Bjarke Berg
e17cc8ad70
Merge pull request #9452 from umbraco/netcore/bugfix/linux-fix-test
...
Netcore: Fix unit tests, so they pass on linux too
2020-11-25 11:45:35 +01:00
Bjarke Berg
a117d6be92
Fix test for linux: use temp folder inside content root
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-25 07:40:56 +01:00
Bjarke Berg
1e2ad85718
Fix test for linux: config folder is lowercase
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-25 07:31:39 +01:00
Bjarke Berg
0b7f7e4f37
Use temp path for test
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-25 07:22:32 +01:00
Bjarke Berg
8aba727248
Use temp path for test
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-25 07:14:43 +01: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
Bjarke Berg
41f3dae9c8
Fix paths in LogviewerTests
2020-11-24 19:49:46 +01:00
Andy Butland
b331d683ec
Migrated member related partial views along with necessary methods from MembershipHelper into IUmbracoWebsiteSecurity.
2020-11-24 11:33:46 +01: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
73bd42a916
Fix parameter name for IUmbracoBuilder
2020-11-21 15:43:01 +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
3672a9f2f2
Add composers via extension on UmbracoBuilder
...
reduce scope of CoreRuntimeBootstrapper
2020-11-19 16:20:39 +00:00
Shannon
6a995127b1
Migrates AdminUsersAuthorizeAttribute and DenyLocalLoginAuthorizationAttribute to authz policies
2020-11-19 23:53:04 +11:00
Paul Johnson
aec25d5007
Replace Composition with UmbracoBuilder
2020-11-18 17:41:57 +00:00
Benjamin Carleski
2309bb9d5b
Finish removing IOHelper.MapPath references
2020-11-18 08:10:16 -08:00
Shannon
99247d7fbe
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6973-migrating-authenticationcontroller
...
# Conflicts:
# src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs
2020-11-18 16:02:51 +11:00
Elitsa Marinovska
dd5f400cf3
Netcore: Migration of Model classes from Umbraco.Infrastructure to Core ( #9404 )
...
* Migrating more model, mapping and tree classes
* Migrating files from Mapping dir without Newtonsoft dependency
* Migrating files from PublishedContent and Editors dirs without Newtonsoft dependency + some more of the same kind
* Migrating DataType class without the usage of Newtonsoft.Json and making the corresponding changes to all classes affected
* Combining 3 ContentExtensions files into 1
* Refactoring from migrating ContentExtensions
* Migrating more classes
* Migrating ContentRepositoryExtensions - combining it with existing file in Umbraco.Core
* removing Newtonsoft json dependency & migrating file. Adding partial migration of ConfigurationEditor, so PropertyTagsExtensions can be migrated
* Migrating ContentTagsExtensions, and refactoring from changes in PropertyTagsExtensions
* Changes that should be reverted once ConfigurationEditor class is fully migrated
* VS couldn't find Composing, so build was failing. Removing the using solves the problem
* Handling a single case for deserializing a subset of an input
* Small changes and added tests to JsonNetSerializer
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Migrated ConfigurationEditor
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
Co-authored-by: Bjarke Berg <mail@bergmania.dk >
2020-11-17 20:27:10 +01:00
Paul Johnson
d498c1a2cd
Netcore: Turn container validation back on ( #9401 )
...
* Remove RuntimeLevelAttribute & disable filtering
* Remove RuntimeLevelAttribute usage on Composers
* Fix broken tests
* Resolve UserManager registration issues.
* Turn container validation back on.
* Resolve lifetime issue post install backoffice.
* Remove final TODO: MSDI
2020-11-17 08:56:04 +01:00
Bjarke Berg
e46a248832
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6973-migrating-authenticationcontroller-merge
...
# Conflicts:
# src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs
# src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
# src/Umbraco.Infrastructure/Scheduling/SchedulerComponent.cs
# src/Umbraco.Infrastructure/Scheduling/SchedulerComposer.cs
# src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs
# src/Umbraco.Tests/Testing/UmbracoTestBase.cs
# src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs
# src/Umbraco.Web.BackOffice/Runtime/BackOfficeComposer.cs
# src/Umbraco.Web.Common/Runtime/AspNetCoreComposer.cs
# src/Umbraco.Web.Common/UmbracoContext/UmbracoContext.cs
# src/Umbraco.Web.UI.NetCore/appsettings.json
# src/Umbraco.Web/Editors/BackOfficeController.cs
# src/Umbraco.Web/Runtime/WebInitialComponent.cs
2020-11-12 13:10:19 +01:00
Bjarke Berg
bb1b04be15
Netcore: Cleanup and migrate few classes from Umbraco.Web ( #9375 )
...
* Migrated a few classes, and cleaned up by removing some old classs too in the Umbraco.Web Project
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Migrated a few classes, and cleaned up by removing some old classs too in the Umbraco.Web Project
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Moved SurfaceControllerTypeCollection + Builder
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Moved Extension methods
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Removed Wrap methods.. People should use their own TagBuilder
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-12 11:01:19 +01:00
Andy Butland
b4ce2873cc
NetCore: Migrated database server registrar and messenger tasks into hosted services ( #9353 )
...
* Migrated database server registrar and messenger tasks into hosted services.
Moved DatabaseServerRegistrar Options into injectable configuration.
* Added further cases for unit tests on hosted services checking execution based on runtime level.
* Migrated DatabaseServerMessengerOptions into configuration.
2020-11-10 20:02:09 +01:00
Bjarke Berg
9b9b5d70be
Merge branch 'netcore/netcore' into netcore/feature/migrate_custom_view_engines
2020-11-04 08:40:28 +01:00
Bjarke Berg
dae6e2b8ee
Migrated RenderNoContentController + related ( #9309 )
...
* Migrated RenderNoContentController + related
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Fix after MSDI
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Update src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com >
* Removing connection string
* Fixed tests after moving endpoint registration
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com >
2020-11-03 18:55:55 +01:00
Bjarke Berg
aefb596b4b
More viewengine migration. Including wrapping in profiler etcs
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-03 14:25:45 +01:00
Bjarke Berg
3cf45c9e88
Merge pull request #9329 from AndyButland/feature/amend-health-check-notifier-first-run-time-to-crontab
...
.NetCore: change health check notifier first run time to cron expression
2020-11-03 12:06:34 +01:00
Bjarke Berg
8e44d89856
Introducing interface for our needs of a CronTabParser. And inject it where needed
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-03 09:36:56 +01:00
Bjarke Berg
2da6c8517a
Merge remote-tracking branch 'origin/netcore/netcore' into feature/amend-health-check-notifier-first-run-time-to-crontab
...
# Conflicts:
# src/Umbraco.Core/ServiceCollectionExtensions.cs
# src/Umbraco.Web.Common/Runtime/AspNetCoreComposer.cs
2020-11-03 07:09:15 +01:00
Andy Butland
2f2da679a4
Migrated scheduled publishing task to a hosted service.
2020-11-02 18:08:25 +01:00
Andy Butland
21c29d6446
Fixes failing unit test due to null reference.
...
Amended signatures of method under test to support testing without the previously observed behaviour of an erroring test passing but crashing the test runner process.
2020-11-02 11:59:39 +01:00
Andy Butland
0bffe9aa55
Updated health check configuration validation tests to match change to cron expression.
2020-11-01 08:41:17 +01:00
Andy Butland
a0ce44c9fc
Changed configuration of first run time for health check notifier from a time string to a cron expression.
2020-10-31 22:49:12 +01:00
Andy Butland
433fdbb047
Change LoggingSettings.MaxLogAge from integer (minutes) to a TimeSpan.
2020-10-31 14:25:40 +01:00
Andy Butland
88380a17ae
Migrated log scrubber backgroun task to a hosted service.
2020-10-31 14:13:24 +01:00
Andy Butland
092fcac28a
Fixed mock leading to failing test run.
2020-10-31 11:04:02 +01:00
Andy Butland
4920fba7cb
Migrated temp file cleanup background task to a hosted service.
2020-10-31 08:58:47 +01:00
Andy Butland
9cb59239d1
Migrated KeepAlive recurring task to hosted service.
2020-10-30 17:19:01 +01:00
Andy Butland
bdb8f34da3
Netcore: Health check notifier hosted service ( #9295 )
...
* Implemented health check notifier as a hosted service.
Added validation to health check settings.
* Registered health check notifier as a hosted service.
Modified health check nested settings to use concrete classes to align with other configuration models.
* Resolved issues with email sending using development server.
* PR review comments and fixed failing unit test.
* Changed period and delay millisecond and hourly values to TimeSpans.
Changed configuration of first run time for health check notifications to use H:mm format.
* Set up SecureSocketOptions as a locally defined enum.
* Tightened up time format validation to verify input is an actual time (with hours and minutes only) and not a timespan.
* Aligned naming and namespace of health check configuration related classes with other configuration classes.
* Created constants for hex colors used in formatting health check results as HTML.
* Revert "Tightened up time format validation to verify input is an actual time (with hours and minutes only) and not a timespan."
This reverts commit f9bb8a7a825bcb58146879f18b47922e09453e2d.
* Renamed method to be clear validation is of a TimeSpan and not a time.
Co-authored-by: Bjarke Berg <mail@bergmania.dk >
2020-10-30 13:56:13 +01:00