Emma Garland
c36aaabd0e
Updated to move the logic for whether the password change can occur, into the controller,
2021-02-26 12:42:18 +00:00
Emma Garland
8f392c252a
Merge branch 'netcore/dev' into netcore/members-passwordchange-temp
...
# Conflicts:
# src/Umbraco.Core/Models/ChangingPasswordModel.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/MemberControllerUnitTests.cs
# src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
# src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
# src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs
2021-02-26 11:12:34 +00:00
Emma Garland
0a10d3176d
Initial changes to password model
2021-02-20 19:16:31 +00:00
Mole
7e791f3fe7
Align namespaces in Packaging to Umbraco.Cms.Core
...
And fix tests
2021-02-15 13:44:18 +01:00
Mole
eb091f8dcd
Align namespaces in root of infrastructure
2021-02-15 13:14:18 +01:00
Mole
30b086d5d0
Align namespaces in Security to Umbraco.Cms.Core
2021-02-15 12:01:12 +01:00
Mole
5bd8e32279
Align namespaces in Persistence
...
Made everything except for repository interface be in the Umbraco.Cms.Infrastructure.Persistence namespace
2021-02-12 13:36:50 +01:00
Mole
55aa2edb72
Align namespaces in Umbraco.Web.Common
2021-02-10 11:42:04 +01:00
Mole
428e80f515
Align namespaces in Umbraco.Web.BackOffice
2021-02-10 11:11:18 +01:00
Emma Garland
19fcbf80f4
Merge branch 'netcore/dev' into netcore/members-userstore
2021-02-09 13:22:40 +00:00
Mole
216fb87c79
Rename Umbraco.Core namespace to Umbraco.Cms.Core
2021-02-09 10:22:42 +01:00
Bjarke Berg
fea86bbf7a
Moved the application url to HostingEnvironment and set it in the request middleware
2021-02-08 11:00:15 +01:00
Emma Garland
9ba78497a0
Merge branch 'netcore/netcore' into netcore/members-userstore
...
# Conflicts:
# src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs
# src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs
2021-01-19 15:29:40 +00:00
Bjarke Berg
a54e10bc13
Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/merge-v8-18-01-2021
...
# Conflicts:
# .gitignore
# build/NuSpecs/UmbracoCms.Core.nuspec
# src/SolutionInfo.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/BackOfficeElement.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/IBackOfficeSection.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs
# src/Umbraco.Core/IO/SystemFiles.cs
# src/Umbraco.Core/Models/ContentBase.cs
# src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
# src/Umbraco.Core/Persistence/UmbracoDatabaseExtensions.cs
# src/Umbraco.Core/Runtime/CoreRuntime.cs
# src/Umbraco.Core/RuntimeOptions.cs
# src/Umbraco.Core/RuntimeState.cs
# src/Umbraco.Core/Telemetry/TelemetryMarkerComponent.cs
# src/Umbraco.Core/Telemetry/TelemetryMarkerComposer.cs
# src/Umbraco.Examine/Umbraco.Examine.csproj
# src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
# src/Umbraco.Infrastructure/Install/InstallStepCollection.cs
# src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
# src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
# src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
# src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
# src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs
# src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Tests/Testing/TestDatabase.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
# src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js
# src/Umbraco.Web.UI.NetCore/Views/Partials/Grid/Editors/TextString.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/config/umbracoSettings.Release.config
# src/Umbraco.Web/Composing/CompositionExtensions/Installer.cs
# src/Umbraco.Web/Editors/PreviewController.cs
# src/Umbraco.Web/Editors/UsersController.cs
# src/Umbraco.Web/JavaScript/PreviewInitialize.js
# src/Umbraco.Web/Telemetry/TelemetryComponent.cs
# src/Umbraco.Web/UmbracoApplication.cs
2021-01-18 16:06:23 +01:00
Emma Garland
1431a0a076
Merge branch 'netcore/netcore' into netcore/members-userstore
...
# Conflicts:
# src/Umbraco.Web.BackOffice/Controllers/ContentControllerBase.cs
# src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
2021-01-15 16:51:23 +00:00
Bjarke Berg
04bb4e99b6
Fixed possible null reference exceptions
2021-01-14 19:41:32 +01:00
Elitsa Marinovska
b572cf6809
Surrounding ModelState with the newly introduced SimpleValidationModel type
2021-01-13 11:39:44 +01:00
Elitsa Marinovska
2e62a6c5f2
Reverting the change of BadRequest() back to ValidationErrorResult
2021-01-13 11:29:56 +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
Emma Garland
d285f626a0
Pull request peer review changes - renamed password method, removed unneeded non-strongly typed Member GetAllRoles() method, removed duplicate Normalizer test and rename normalizer, removed currently unneeded events on MembersUserManager. Fixed namespaces and ensured tests in correct location.
2021-01-11 14:24:49 +00: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
d206273753
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/usermanager-object-cleanup
...
# Conflicts:
# src/Umbraco.Infrastructure/Composing/CompositionExtensions/CoreMappingProfiles.cs
# src/Umbraco.Web.BackOffice/Extensions/WebMappingProfiles.cs
2020-12-04 12:59:19 +11:00
Bjarke Berg
53d424244e
Merge pull request #9486 from Matthew-Wise/feature/8264-typefilters-OutgoingEditorModelEventAttribute
...
Converted OutgoingEditorModelEventAttribute to a type filter
2020-12-03 19:08:46 +01:00
Shannon
86d231f5de
removes remaining back office things from underlying UmbracoUserManager moves files
2020-12-04 02:21:21 +11:00
Matthew Wise
fdb6c21075
Converted OutgoingEditorModelEventAttribute to a type filter
2020-12-02 14:21:05 +00: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
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
Shannon
e01abf2802
Moves some files, adds notes, starts poc for back office login providers
2020-11-26 19:24:55 +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
Shannon
63fceebca0
Removes UmbracoApplicationAuthorizeAttribute and migrates usages to authz policies
2020-11-19 22:17:42 +11: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
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
Shannon
1400a02798
Merge branch 'netcore/dev' into netcore/task/6973-migrating-authenticationcontroller
...
# Conflicts:
# src/Umbraco.Core/Constants-Security.cs
# src/Umbraco.Infrastructure/BackOffice/BackOfficeClaimsPrincipalFactory.cs
# src/Umbraco.Infrastructure/BackOffice/BackOfficeUserManager.cs
# src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
# src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
# src/Umbraco.Web.BackOffice/Controllers/DenyLocalLoginAuthorizationAttribute.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs
# src/Umbraco.Web.BackOffice/Services/IconService.cs
# src/Umbraco.Web.Common/Security/ExternalSignInAutoLinkOptions.cs
# src/Umbraco.Web.UI.Client/src/common/interceptors/_module.js
# src/Umbraco.Web.UI.Client/src/common/interceptors/requiredheaders.interceptor.js
# src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.controller.js
# 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/Views/AuthorizeUpgrade.cshtml
# src/Umbraco.Web/Editors/AuthenticationController.cs
# src/Umbraco.Web/Editors/BackOfficeController.cs
# src/Umbraco.Web/Editors/Filters/IsCurrentUserModelFilterAttribute.cs
# src/Umbraco.Web/Security/AppBuilderExtensions.cs
# src/Umbraco.Web/Security/AuthenticationOptionsExtensions.cs
# src/Umbraco.Web/UmbracoDefaultOwinStartup.cs
2020-10-23 10:10:02 +11:00
Elitsa Marinovska
d7eca3d0d5
Abstracting MailMessage
2020-10-22 15:08:07 +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
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