Bjarke Berg
a023d5c55f
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/remove-httpresponseexception
...
# Conflicts:
# src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
# src/Umbraco.Web.Common/Install/InstallApiController.cs
2021-01-05 14:20:32 +01:00
Shannon
1f6297ad6b
Moves some services 'up' to Core, moves core DI registrations 'up' to UmbracoBuilder, moves Composing ext to DependencyInjection namespaces as UmbracoBuilder ext
2020-12-24 11:46:17 +11:00
Elitsa Marinovska
358a8ec2af
Initial stage of getting rid of HttpResponseException and replacing it with the usage of ValidationErrorResult
2020-12-22 16:36:07 +01:00
Shannon
5172b0e58a
Updates user manager, user store and identity user to use the aspnetcore base classes instead of copies of our own, uses string ids for user and roles to simplify everything and to allow for sharing between members
2020-12-04 12:44:27 +11:00
Shannon
86d231f5de
removes remaining back office things from underlying UmbracoUserManager moves files
2020-12-04 02:21:21 +11:00
Shannon
d0e17d16bc
ext method for authn back office scheme with null check, fixing tests
2020-12-02 15:49:28 +11:00
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
fe5dcd83bb
removes the 2FA store implementation since that will need to be manually enabled
2020-12-01 18:14:37 +11: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
Shannon
efff96f711
Creates IBackOfficeSignInManager interface
2020-11-30 22:46:05 +11:00
Bjarke Berg
5efa93d803
Revert "Revert "FIxes more of the auth procedure""
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:36:09 +01:00
Bjarke Berg
26dc9219c4
Revert "Revert "Cleans up BackofficeSecurity, fixes up AuthenticationController for endpoints that aren't authorized (and simplifies)""
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:35:43 +01: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
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
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
Bjarke Berg
96ef2fd9b7
Revert "Cleans up BackofficeSecurity, fixes up AuthenticationController for endpoints that aren't authorized (and simplifies)"
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:16:22 +01:00
Bjarke Berg
348f69734b
Revert "FIxes more of the auth procedure"
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 13:15:54 +01:00
Shannon
ec6ac41e56
FIxes more of the auth procedure
2020-11-27 15:58:00 +11:00
Shannon
47ab15f457
Cleans up BackofficeSecurity, fixes up AuthenticationController for endpoints that aren't authorized (and simplifies)
2020-11-27 15:42:41 +11: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
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
f313a4f583
some cleanup of handlers that check multiple query strings
2020-11-24 11:56:53 +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
7757447244
Migrates UmbracoBackOfficeAuthorizeAttribute to authz policies and adds notes/questions
2020-11-20 15:32:36 +11:00
Shannon
e7b4c5a811
Converts FeatureAuthorize to authz policy
2020-11-20 12:40:29 +11:00
Shannon
6a995127b1
Migrates AdminUsersAuthorizeAttribute and DenyLocalLoginAuthorizationAttribute to authz policies
2020-11-19 23:53:04 +11:00
Andy Butland
0fbe01cd22
Created new abstraction IUmbracoWebsiteSecurity and migrated controller's using it (replacing MembershipHelper) to Umbraco.Web.Website.
2020-11-18 16:12:42 +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
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
Bjarke Berg
5fe849c8e2
https://github.com/umbraco/Umbraco-CMS/pull/9252 - Changed EmailMessage to be completely immutable
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-23 12:37:23 +02:00
Shannon
64d8b56eca
It builds!
2020-10-23 14:18:53 +11:00
Elitsa Marinovska
d7eca3d0d5
Abstracting MailMessage
2020-10-22 15:08:07 +02: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
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
Shannon
e68c37dc54
Migrates AuthenticationController for the 2FA requirements
2020-10-19 18:48:51 +11: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
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
ab3ac5ad91
Remove a bunch of references to the old logger
2020-09-21 11:19:46 +02:00