Bjarke Berg
fea86bbf7a
Moved the application url to HostingEnvironment and set it in the request middleware
2021-02-08 11:00:15 +01:00
Elitsa Marinovska
b572cf6809
Surrounding ModelState with the newly introduced SimpleValidationModel type
2021-01-13 11:39:44 +01:00
Elitsa Marinovska
9a9f9164e2
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/remove-httpresponseexception
...
# Conflicts:
# src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
# src/Umbraco.Web.BackOffice/Controllers/SectionController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
2021-01-13 08:53:41 +01:00
Bjarke Berg
fe016dd103
Netcore: Fixes issues with user invites ( #9616 )
...
* AB9629
Fixes issues with user invites
- Issue with the generated link in the invite email
- Allow anonymous access to CurrentUserController.PostSetInvitedUserPassword, as it is used by users not logged in
- Allow anonymous access to AuthenticationController.GetPasswordConfig, as this is used to set a password for newly invited users, before they login
* Fix issues with invite flow
* Fix minor typos
* Fixed issue with validation response and remove/change avatar
* Fix issue with disable users, after all enums are handled like strings
* Fix tests
* Fix other validation issue
* Fix yet another validation issue
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
2021-01-12 16:15:19 +01:00
Elitsa Marinovska
b0f4f9f440
Refactoring the use of ValidationErrorResult with the build-in types for status response results
2021-01-12 14:00:14 +01:00
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