From a4eb45f1ab0aa7b4baf10d4e5b1cdcc5b8218a23 Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Sun, 18 Oct 2020 19:03:14 +0300 Subject: [PATCH 01/22] Scope: refactoring --- .../ASC.Api.Core/Auth/ConfirmAuthHandler.cs | 1 + common/ASC.Common/ASC.Common.csproj | 1 + common/ASC.Common/DIHelper.cs | 185 ++++++++++++++++++ .../Caching/CachedTenantService.cs | 4 +- .../Caching/CachedUserService.cs | 10 +- .../Context/Impl/UserManager.cs | 10 +- .../Context/SecurityContext.cs | 2 + common/ASC.Core.Common/Core/IUserService.cs | 6 +- common/ASC.Core.Common/Data/DbUserService.cs | 6 +- .../EF/Context/DbContextManager.cs | 3 +- common/ASC.Core.Common/EF/JsonExtensions.cs | 9 +- .../Security/Authorizing/AzManager.cs | 3 +- .../Authorizing/IPermissionResolver.cs | 4 +- .../Authorizing/PermissionResolver.cs | 3 +- .../Security/EmailValidationKeyProvider.cs | 1 + .../Tests/HostedSolutionTest.cs | 2 + common/ASC.Data.Reassigns/QueueWorker.cs | 1 + common/ASC.Data.Storage/Extensions.cs | 2 + common/ASC.FederatedLogin/AccountLinker.cs | 1 + common/ASC.Notify.Textile/JabberStyler.cs | 2 + common/ASC.Notify.Textile/PushStyler.cs | 5 + .../Controllers/SettingsController.cs | 1 + .../ASC.ApiSystem/Models/CoreSettingsModel.cs | 1 + .../ASC.ElasticSearch/Engine/BaseIndexer.cs | 1 + products/ASC.Files/Server/Startup.cs | 4 + .../Controllers/ModulesController.cs | 1 + .../Controllers/SmtpSettingsController.cs | 8 +- .../Core/FirstTimeTenantSettings.cs | 1 + web/ASC.Web.Core/QuotaSync.cs | 1 + web/ASC.Web.Core/Sms/SmsManager.cs | 3 + web/ASC.Web.Studio/Startup.cs | 2 + 31 files changed, 265 insertions(+), 19 deletions(-) diff --git a/common/ASC.Api.Core/Auth/ConfirmAuthHandler.cs b/common/ASC.Api.Core/Auth/ConfirmAuthHandler.cs index ea2a35017d..c3c8b35312 100644 --- a/common/ASC.Api.Core/Auth/ConfirmAuthHandler.cs +++ b/common/ASC.Api.Core/Auth/ConfirmAuthHandler.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using ASC.Common; using ASC.Core; using ASC.Security.Cryptography; +using ASC.Web.Studio.Core; using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.DependencyInjection; diff --git a/common/ASC.Common/ASC.Common.csproj b/common/ASC.Common/ASC.Common.csproj index b6b657bd36..6c7708ffc0 100644 --- a/common/ASC.Common/ASC.Common.csproj +++ b/common/ASC.Common/ASC.Common.csproj @@ -49,6 +49,7 @@ +