Shannon
efb84409f5
kill UmbracoWebsiteSecurityFactory and UmbracoRoutedRequest, simplify all this.
2021-03-04 15:12:58 +11:00
Shannon
ed5116664f
kill IBackOfficeSecurityFactory and fix the broken dependency chain
2021-03-04 15:07:54 +11:00
Shannon
089d147917
Fix namespaces
2021-03-04 14:49:19 +11:00
Shannon
a70a739d62
security accessors should not be hybrid, ensures call context isn't flowed to child set/forget threads, renames TaskHelper and adds a test, removes GenericDictionaryRequestAppCache in favor of HttpContextRequestAppCache that relies on HttpContext and fixes http locks since there was a deadlock problem. Removes SafeCallContext, we just use ExecutionContext.SuppressFlow instead
2021-03-03 10:40:16 +11:00
Shannon
6148336d04
Adds new event so we know when umbraco routes a value, ensure the IUmbracoWebsiteSecurity is initialized for front-end requests, cleans up some of the routing middleware, adds lots of notes
2021-03-01 12:51:07 +11:00
Mole
63c8365e6a
Fix merge and consolidate ClaimsIdentityExtensions into one file.
2021-02-22 08:51:37 +01:00
Mole
d413bf49f9
Merge remote-tracking branch 'origin/netcore/dev' into 9622-remove-backofficeidentity
...
# Conflicts:
# src/Umbraco.Core/Security/AuthenticationExtensions.cs
# src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs
# src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/UmbracoBackOfficeIdentityTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/ClaimsPrincipalExtensionsTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgeryTests.cs
# src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs
# src/Umbraco.Web.BackOffice/Security/BackOfficeSecureDataFormat.cs
# src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs
# src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs
2021-02-22 08:38:12 +01:00
Mole
bf41c2eeaa
Netcore: Align namespaces ( #9801 )
...
* Rename Umbraco.Core namespace to Umbraco.Cms.Core
* Move extension methods in core project to Umbraco.Extensions
* Move extension methods in core project to Umbraco.Extensions
* Rename Umbraco.Examine namespace to Umbraco.Cms.Examine
* Move examine extensions to Umbraco.Extensions namespace
* Reflect changed namespaces in Builder and fix unit tests
* Adjust namespace in Umbraco.ModelsBuilder.Embedded
* Adjust namespace in Umbraco.Persistence.SqlCe
* Adjust namespace in Umbraco.PublishedCache.NuCache
* Align namespaces in Umbraco.Web.BackOffice
* Align namespaces in Umbraco.Web.Common
* Ensure that SqlCeSupport is still enabled after changing the namespace
* Align namespaces in Umbraco.Web.Website
* Align namespaces in Umbraco.Web.UI.NetCore
* Align namespaces in Umbraco.Tests.Common
* Align namespaces in Umbraco.Tests.UnitTests
* Align namespaces in Umbraco.Tests.Integration
* Fix errors caused by changed namespaces
* Fix integration tests
* Undo the Umbraco.Examine.Lucene namespace change
This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows.
* Fix merge
* Fix Merge
2021-02-18 11:06:02 +01:00
Mole
8ba3f7ccb4
Remove UmbracoBackOfficeIdentity
2021-02-17 14:21:59 +01:00
Mole
b9d61f3ad8
Gut UmbracoBackOfficeIdentity
2021-02-17 14:17:38 +01:00
Mole
33a99df73f
Remove usage of FromClaimsIdentity
2021-02-17 11:50:19 +01:00
Mole
a87075a941
Switch simple properties to extension methods
2021-02-17 10:11:04 +01:00
Mole
d14aa007ea
Add extension methods to replace UmbracoBackOfficeIdentity
2021-02-17 09:50:27 +01:00
Mole
fac0be1701
Remove clone
...
It's no longer needed
2021-02-16 15:43:15 +01:00
Shannon
bd4006c577
Fixes the custom RequestCultureProvider to dynamically add cultures to the supported cultures list, changes the request/builder to not reference a ICultureInfo and instead just a string to avoid allocations and confusion since the handlers will end up as a string anyways. Removes the unnecessary cultureinfo concurrentdictionary because CultureInfo.GetCultureInfo does the same thing.
2021-01-11 13:39:09 +11:00
Shannon Deminick
96da33cfd6
Merge pull request #9496 from umbraco/netcore/task/usermanager-object-cleanup
...
Netcore/task/usermanager object cleanup
2020-12-07 17:38:25 +11: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
35af86c3d3
Splits user manager into a base class that can be reused changes base class of IdentityUser to UmbracoIdentityUser
2020-12-04 01:38:36 +11:00
Shannon
8e9dfad381
Simplifying IdentityUser
2020-12-04 00:54:28 +11:00
Shannon
c51ed88d56
Adds notes for external login service/repo, changes IdentityUserLogin user id to string for now so it can be shared with members/users
2020-12-04 00:20:48 +11:00
Shannon
de03dae46f
Moving namespaces, cleaning up some stuff on the underlying base identity classes
2020-12-03 23:49:32 +11:00
Bjarke Berg
8e3a01cdfc
Merge remote-tracking branch 'origin/netcore/netcore' into feature/auth-policies-tests
2020-12-03 11:30:35 +01:00
Andy Butland
45b9f31e44
Added tests for ContentPermissionsResourceHandler and MediaPermissionsResourceHandler.
2020-12-03 08:30:37 +01: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
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
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
Shannon
47ab15f457
Cleans up BackofficeSecurity, fixes up AuthenticationController for endpoints that aren't authorized (and simplifies)
2020-11-27 15:42:41 +11:00
Bjarke Berg
81bbfe93ce
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6666-auth-policies
2020-11-26 11:59:36 +01:00
Andy Butland
b331d683ec
Migrated member related partial views along with necessary methods from MembershipHelper into IUmbracoWebsiteSecurity.
2020-11-24 11:33:46 +01: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
4dbfe5867b
migrates the custom content persmission helper and media permissions helper checks to authz policies and cleans up that code/class/namespaces
2020-11-24 00:37:26 +11:00
Andy Butland
024b37e0e6
Added further method header comment.
2020-11-18 17:41:10 +01:00
Andy Butland
c971a2d23d
Introduced website security accessor to ensure members aren't shared between sessions.
2020-11-18 17:37:31 +01:00
Andy Butland
d8ef341854
Refactored to async where appropriate.
...
Added call to new abstraction in member authorize attribute.
2020-11-18 16:52:40 +01: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
Shannon
64d8b56eca
It builds!
2020-10-23 14:18:53 +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
Shannon
eaa295095d
Gets password roll forward working
2020-10-07 16:56:48 +11:00
Shannon
e5c272b5d2
Adds support for the super old password format so we can handle upgrades
2020-10-07 15:20:43 +11: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
Bjarke Berg
1dac8779c2
https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/7619 - Added request localization from the current user
2020-08-04 12:54:54 +02:00
Shannon
b75fba71f5
Cleaning up websecurity and implementing it, migrates security stamp and session id validation for cookie auth
2020-06-02 13:28:30 +10:00
Shannon
0ed9d1bd91
renames to LegacyPasswordSecurity
2020-05-28 23:24:32 +10:00
Shannon
e47f81efdc
Gettting password formats and hashing sorted, ensuring the password format on the user is used
2020-05-27 13:48:26 +10:00
Shannon
86f60677a1
moves UserExtensions and ContentPermissionsHelper
2020-05-20 10:29:53 +10:00
Bjarke Berg
7daee53c64
Isolated more web usages - Membership and Request stuff
...
- Moved a few more files
2020-02-28 11:15:25 +01:00
Bjarke Berg
90c2381c86
Renamed Umbraco.Abstractions to Umbraco.Core
2020-02-24 08:21:53 +01:00
Bjarke Berg
c6c0d7df54
AB4234 - Moved stuff from core into web, that used identity.
2020-01-07 13:50:38 +01:00