Shannon
0846fc5690
Cleans up IBackofficeSecurity, ensures authn for the AuthenticationController/BackOfficeController
2020-12-02 14:28:16 +11: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
Shannon
999be04285
cleaning up TODOs
2020-12-02 12:22:08 +11:00
Shannon
efff96f711
Creates IBackOfficeSignInManager interface
2020-11-30 22:46:05 +11:00
Shannon
6176046053
Deals with the Xsrf notes and handling in sign in manager
2020-11-30 22:23:10 +11:00
Bjarke Berg
a098b956a6
Revert "Revert "Ensures that all back office controllers are authenticated under the back office scheme""
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:35:22 +01:00
Bjarke Berg
541ff0fdb0
Revert "Revert "Moves auto linking logic to the BackOfficeSignInManager""
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:34:58 +01:00
Bjarke Berg
d6357e8fde
Revert "Revert "Gets oauth working (with google) now need to test others and debug why the styles aren't working""
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:34:32 +01:00
Bjarke Berg
88c1259d84
Revert "Revert "Moves some files, adds notes, starts poc for back office login providers""
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:33:01 +01:00
Bjarke Berg
3b0d33a84c
Revert "Moves some files, adds notes, starts poc for back office login providers"
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:17:58 +01:00
Bjarke Berg
1833bfa1a9
Revert "Gets oauth working (with google) now need to test others and debug why the styles aren't working"
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:17:34 +01:00
Bjarke Berg
efce67fe8a
Revert "Moves auto linking logic to the BackOfficeSignInManager"
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:17:13 +01:00
Bjarke Berg
7d61020214
Revert "Ensures that all back office controllers are authenticated under the back office scheme"
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:16:50 +01:00
Shannon
313a2e6f7c
Ensures that all back office controllers are authenticated under the back office scheme
2020-11-27 13:32:41 +11:00
Shannon
7d143ec240
Moves auto linking logic to the BackOfficeSignInManager
2020-11-27 12:51:37 +11:00
Shannon
c08db7763e
Gets oauth working (with google) now need to test others and debug why the styles aren't working
2020-11-27 00:44:36 +11:00
Shannon
e01abf2802
Moves some files, adds notes, starts poc for back office login providers
2020-11-26 19:24:55 +11:00
Shannon
7757447244
Migrates UmbracoBackOfficeAuthorizeAttribute to authz policies and adds notes/questions
2020-11-20 15:32:36 +11: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
Bjarke Berg
715071a33f
Merge remote-tracking branch 'origin/netcore/task/6973-migrating-authenticationcontroller' into netcore/task/6973-migrating-authenticationcontroller-merge
...
# Conflicts:
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
# src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs
# src/Umbraco.Web/Logging/WebProfilerComponent.cs
# src/Umbraco.Web/Logging/WebProfilerComposer.cs
2020-10-26 14:37:56 +01:00
Bjarke Berg
b47f946ffe
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6973-migrating-authenticationcontroller
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
# Conflicts:
# src/Umbraco.Infrastructure/HealthCheck/NotificationMethods/EmailNotificationMethod.cs
# src/Umbraco.Web/Editors/AuthenticationController.cs
2020-10-26 14:34:06 +01:00
Mole
9cd752c2f8
Netcore: Align Namespaces in Tests and Web.BackOffice ( #9274 )
...
* Align namespaces in integration tests
* Align namespaces in unit tests
* Align namespaces in Backoffice.Filters
* Align namespaces in Backoffice.ActionResults
* Align namespaces in Backoffice.Mapping
* Align namespaces in Backoffice.PorpertyEditors and SignalR
* Align namespaces in Backoffice.Trees
* Align unit tests after migration
2020-10-26 13:34:08 +01:00
Bjarke Berg
f791bd4426
Fixed unit test, by injecting IHttpContextAccessor instead of using HttpContext directly. Not the test class is mockable again
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-23 10:36:47 +02:00
Shannon
64d8b56eca
It builds!
2020-10-23 14:18:53 +11:00
Bjarke Berg
ca8e54ffc6
https://github.com/umbraco/Umbraco-CMS/pull/9248 >
...
- Removed BackOfficeArea
- Injected IEmailSender
- Uses nameof instead of magic strings
- Uses GetControllerName instead of magic strings
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-22 13:37:47 +02:00
Bjarke Berg
6905e5e734
Cleanup of different stuff that can be deleted from Umbraco.Web
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-22 12:25:52 +02: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
Bjarke Berg
b27732adc8
Migrated RenderMvcController and RenderIndexActionSelectorAttribute
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-15 11:42:16 +02:00
Mole
8258178c5a
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Infrastructure/Media/UploadAutoFillProperties.cs
# src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs
# src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs
# src/Umbraco.Tests/Models/MediaXmlTest.cs
# src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
2020-09-23 13:32:49 +02:00
Mole
2bd4f683f2
Remove empty line in BackOfficeController
2020-09-23 13:06:18 +02:00
Bjarke Berg
60424dd54f
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/bugfix/reset_password
...
# Conflicts:
# src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
2020-09-22 19:35:49 +02:00
Mole
4b5fbf83e1
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
2020-09-22 15:24:01 +02:00
Bjarke Berg
0c908a7bbb
Introduced interface on BackOfficeUserManager ( #8913 )
...
* Introduced IBackOfficeUserManager
* Fixed test
* Moved class into own file
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
2020-09-22 14:44:41 +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
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
894abdd183
Remove a bunch of references to the old logger
2020-09-21 09:41:18 +02:00
Mole
d61b9f54fa
Merge options
2020-09-18 12:53:06 +02:00
Nikolaj
488093add3
Remove LogWarning<T> from LoggerExtensions
2020-09-16 10:08:18 +02:00
Nikolaj
a1ecc4a5c9
Change Warn to LogWarning
2020-09-14 10:17:32 +02:00
Bjarke Berg
a4e5029912
Refactored to remove Configs
2020-09-10 13:51:59 +02:00
Andy Butland
f1bda37a64
Updates following PR review.
2020-09-01 18:10:12 +02:00
Bjarke Berg
4a150859cd
Fixed reset password for functionality
2020-08-31 13:39:29 +02:00
Andy Butland
967f0be705
Aligned property names in code with those in configuration.
2020-08-25 10:45:54 +02:00
Andy Butland
2cd91a5a54
Converted to IOptions over IOptionsSnapshot due to the latter only working in scoped services.
...
Further amends to return to booting application.
2020-08-23 23:36:48 +02:00
Andy Butland
510bd92e78
Amended injection of further settings to use IOptionsSnapshot.
2020-08-21 14:52:47 +01:00
Bjarke Berg
7b95494e30
Merge pull request #8572 from umbraco/netcore/bugfix/6970-backoffice-controller
...
Migrates remaining non-oauth actions on back office controller to netcore
2020-08-17 08:29:59 +02:00
Shannon
cca7303abd
Migrates preview auth Middleware
...
Migrates UriExtensionsTests to netcore, fixes preview controller bits, adds tests for preview path for back office route check, fixes virtual paths for views,
2020-08-07 00:48:32 +10:00
Elitsa Marinovska
3a780db3fc
Updating old comments
2020-08-04 20:29:48 +02:00