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
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
Paul Johnson
4ae329589a
NetCore: MSDI refactor remove IFactory & IRegister ( #9308 )
...
* Replace IFactory with IServiceProvider
* Replace IRegister with IServiceCollection
* Fix Rte.cshtml so the view can service locate.
* Replace Composing Lifetime with MSDI ServiceLifetime
* Remove ServiceProvider AddMultipleUnique extension
* Remove Umbraco.Web.Composing.Current.Reset and any calls
* Remove LightInject from net framework projects
* Brought back a helper for setting MediaFileSystem underlying IFileSystem
2020-10-30 12:16:17 +01:00
Paul Johnson
ec66990e72
NetCore: MSDI refactor phase 2 ( #9280 )
...
* Moved adapters from Infra -> Core
* Allow Composition to accept a service collection instead of an IRegister
* Composition no longer takes IRegister as constructor arg
all tests passing
* Composition no longer implements IRegister
* Lose _uniques in Composition
* lose Composition OnCreatingFactory actions
* Clean up UmbracoCoreServiceCollectionExtensions & Composition
Less IFactory
* LightInject gone where TFW == netstandard2.0 || TFW == netcoreapp3.1
* Resolve dead code issues
* Rename IFactory methods to match IServiceProvider so they can be trivially swapped later.
* Rename IFactory methods to match IServiceProvider so they can be trivially swapped later (continued)
Thought the counts were low, it's mostly extension method usage
2020-10-27 11:53:01 +01:00
Shannon
64d8b56eca
It builds!
2020-10-23 14:18:53 +11:00
Shannon
2b1dfc5888
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6973-migrating-authenticationcontroller
...
# Conflicts:
# src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs
# src/Umbraco.Tests/Web/Mvc/UmbracoViewPageTests.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web/Editors/BackOfficeController.cs
# src/Umbraco.Web/Mvc/UmbracoController.cs
2020-10-22 21:16:44 +11:00
Shannon
d1b35deb43
Migrates remaining backofficecontroller but still a bunch of work to do , streamlines Backoffice to BackOffice (but is that what we want?)
2020-10-21 16:51:00 +11:00
Mole
c9985f0043
Remove DisableBrowserCacheAttribute
2020-10-15 08:58:01 +02:00
Mole
9763d9f7e9
Removed more classes that has been migrated
2020-10-14 15:20:52 +02:00
Mole
9e5fda6c42
Remove old UnhandedExceptionLoggerConfigurationAttribute and UnhandledExceptionLogger
2020-10-13 13:05:08 +02:00
Mole
50f4d7abde
Migrate UmbracoUserTimeoutFilterAttribute
2020-10-12 13:32:25 +02:00
Mole
c0616d516a
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Infrastructure/Scheduling/ScheduledPublishing.cs
# src/Umbraco.Infrastructure/Scheduling/SchedulerComponent.cs
# src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
# src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs
# src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs
# src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
# src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
# src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs
# src/Umbraco.Web.Common/Install/InstallController.cs
2020-09-22 13:44:22 +02:00
Bjarke Berg
a80de91031
Netcore: Handle tree authentication ( #8866 )
...
* Added helper methods to invoke the authorization filters of the other controller action
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Implemented Tree Auth
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* cleanup
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Throw forbidden if user has no access instead of InternalServerError
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* EnsureBackofficeSecurity for background jobs
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
2020-09-22 13:19:54 +02:00
Bjarke Berg
96facc4d35
Netcore: Introduce BackofficeSecurityAccessor ( #8871 )
...
* Introduced IWebSecurityAccessor
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Fixed tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Renamed WebSecurity to BackofficeSecurity and all related names
* Fixes typos
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
2020-09-22 10:01:00 +02:00
Mole
d61b9f54fa
Merge options
2020-09-18 12:53:06 +02:00
Nikolaj
120e163682
Begin trying to replace logger in Current
2020-09-16 13:46:45 +02:00
Nikolaj
a18580c7f6
Remove Debug<T> from LoggerExtensions
2020-09-16 10:24:05 +02:00
Nikolaj
488093add3
Remove LogWarning<T> from LoggerExtensions
2020-09-16 10:08:18 +02:00
Nikolaj
dda6fb12a3
Remove LogError<T> from LoggerExtensions
2020-09-16 09:40:49 +02:00
Bjarke Berg
e74570c0ac
More clean up of old configs
2020-09-14 14:12:38 +02:00
Nikolaj
161061dbbc
Remove exception logging and finish LogWarning
2020-09-14 14:10:19 +02:00
Nikolaj
a1ecc4a5c9
Change Warn to LogWarning
2020-09-14 10:17:32 +02:00
Nikolaj
d7e3bce741
Rename Error to align it with MS ILogger
2020-09-14 09:10:53 +02:00
Bjarke Berg
a4e5029912
Refactored to remove Configs
2020-09-10 13:51:59 +02:00
Andy Butland
8241643183
Resolved various failing tests.
2020-08-25 12:30:43 +02:00
Andy Butland
2f22313ceb
Restored Umbraco.Web and added temporary methods for converstion between legacy and new configuration models to maintain build.
2020-08-23 15:58:37 +02:00
Andy Butland
89b725ef28
Reverted non netcore related project amends in order to limit changes to those necessary for the netcore executable call stack.
2020-08-23 14:05:35 +02:00
Andy Butland
510bd92e78
Amended injection of further settings to use IOptionsSnapshot.
2020-08-21 14:52:47 +01:00
Bjarke Berg
1594a84d80
migated remaining backoffice controllers
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-22 10:08:08 +02:00
Bjarke Berg
558c0b03ee
Migrated MemberController
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-18 21:03:11 +02:00
Bjarke Berg
73123704cd
Added JsonDateTimeFormatAttribute
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-18 19:40:13 +02:00
Bjarke Berg
52bc003c8e
Migrated more stuff for MediaController
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-12 15:58:53 +02:00
Bjarke Berg
609c1ffc5b
Migrated content controller + related
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-12 08:27:22 +02:00
Shannon
246e28d147
Implements PostLogout and ensures all appropriate cookies are cleared on logout along with ensuring that the ticket is renewed each user seconds request if configured to stay logged in.
2020-06-09 14:36:36 +10:00
Elitsa Marinovska
68488eb5a7
Another round of injecting webSecurity directly
2020-06-04 13:55:07 +02:00
Shannon
793bbbab5b
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/identity-temp
2020-06-01 15:51:56 +10:00
Shannon
9904dc6cc2
Merge commit '6dcaa986cda8c8bbca06df8030299d5901d31ceb' into netcore/feature/identity-temp
2020-05-28 17:29:35 +10:00
Bjarke Berg
0108db553c
https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Removed OnlyLocalRequestsAttribute from Umbraco.Web
2020-05-27 13:31:18 +02:00
Bjarke Berg
71a8cb6d35
https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated DataTypeController + Fixed injection of services to UmbracoApplicationAuthorizeAttribute
2020-05-26 14:42:19 +02:00
Bjarke Berg
e4c8e2009c
Moved BackOfficeNotificationsController to netcore
2020-05-22 07:26:46 +02:00
Bjarke Berg
a8f5d21eeb
https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - removed old OutgoingEditorModelEventAttribute and EditorModelEventManager
2020-05-20 08:39:27 +02:00
Scott Brady
091712e5de
Merge remote-tracking branch 'Umbraco/netcore/netcore' into netcore/feature/aspnetcoreidentity
2020-05-18 12:52:03 +01:00
Scott Brady
7b1ce5bbe7
Removed duplication with user store and manager
2020-05-18 12:06:26 +01:00
Bjarke Berg
52035c043d
https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated UmbracoWebApiRequireHttpsFilter
2020-05-18 12:40:01 +02:00
Bjarke Berg
0cfd40747c
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6586-backofficecontroller
2020-05-18 12:01:48 +02:00
Bjarke Berg
287f379c1b
Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
2020-05-18 12:01:18 +02:00
Scott Brady
c92c633edb
Reduced duplicated code
2020-05-18 08:21:34 +01:00
Bjarke Berg
1f51d667e9
https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated UmbracoWebApiRequireHttpsFilter
2020-05-18 06:43:33 +02:00
Andy Butland
ed8f65b74e
Migrated AppendUserModifiedHeaderAttribute into netcore
2020-05-17 08:52:28 +02:00
Andy Butland
60c5c15fdf
Migrated ValidationFilterAttribute into netcore
2020-05-16 19:35:45 +02:00