From b0037391a91953a1a68d51f6a8acebc87daae552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 25 Dec 2017 21:58:41 +0300 Subject: [PATCH] Extracted Volo.Abp.Security package. --- Volo.Abp.sln | 7 +++++++ .../Volo.Abp.Security.csproj | 20 +++++++++++++++++++ .../Volo/Abp/Security/AbpSecurityModule.cs | 13 ++++++++++++ .../Volo/Abp/Security/Claims/AbpClaimTypes.cs | 0 .../Claims/ICurrentPrincipalAccessor.cs | 0 .../Claims/ThreadCurrentPrincipalAccessor.cs | 0 src/Volo.Abp/Volo.Abp.csproj | 1 + src/Volo.Abp/Volo/Abp/AbpCommonModule.cs | 2 ++ 8 files changed, 43 insertions(+) create mode 100644 src/Volo.Abp.Security/Volo.Abp.Security.csproj create mode 100644 src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs rename src/{Volo.Abp => Volo.Abp.Security}/Volo/Abp/Security/Claims/AbpClaimTypes.cs (100%) rename src/{Volo.Abp => Volo.Abp.Security}/Volo/Abp/Security/Claims/ICurrentPrincipalAccessor.cs (100%) rename src/{Volo.Abp => Volo.Abp.Security}/Volo/Abp/Security/Claims/ThreadCurrentPrincipalAccessor.cs (100%) diff --git a/Volo.Abp.sln b/Volo.Abp.sln index c9d787ee4b..094108890f 100644 --- a/Volo.Abp.sln +++ b/Volo.Abp.sln @@ -180,6 +180,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volo.Abp.Validation", "src\ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Volo.Abp.Validation.Tests", "test\Volo.Abp.Validation.Tests\Volo.Abp.Validation.Tests.csproj", "{87117AFB-4C87-40CB-889E-F1D97C504906}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volo.Abp.Security", "src\Volo.Abp.Security\Volo.Abp.Security.csproj", "{D43CC2C9-449A-4619-B5C6-CBC72BCA0512}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -470,6 +472,10 @@ Global {87117AFB-4C87-40CB-889E-F1D97C504906}.Debug|Any CPU.Build.0 = Debug|Any CPU {87117AFB-4C87-40CB-889E-F1D97C504906}.Release|Any CPU.ActiveCfg = Release|Any CPU {87117AFB-4C87-40CB-889E-F1D97C504906}.Release|Any CPU.Build.0 = Release|Any CPU + {D43CC2C9-449A-4619-B5C6-CBC72BCA0512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D43CC2C9-449A-4619-B5C6-CBC72BCA0512}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D43CC2C9-449A-4619-B5C6-CBC72BCA0512}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D43CC2C9-449A-4619-B5C6-CBC72BCA0512}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -556,6 +562,7 @@ Global {8D22063D-88DE-4F7A-A917-C81AB4ACE601} = {4C753F64-0C93-4D65-96C2-A40893AFC1E8} {5BECBCEF-459F-424B-A15A-0558D291842A} = {4C753F64-0C93-4D65-96C2-A40893AFC1E8} {87117AFB-4C87-40CB-889E-F1D97C504906} = {37087D1B-3693-4E96-983D-A69F210BDE53} + {D43CC2C9-449A-4619-B5C6-CBC72BCA0512} = {4C753F64-0C93-4D65-96C2-A40893AFC1E8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {BB97ECF4-9A84-433F-A80B-2A3285BDD1D5} diff --git a/src/Volo.Abp.Security/Volo.Abp.Security.csproj b/src/Volo.Abp.Security/Volo.Abp.Security.csproj new file mode 100644 index 0000000000..ab12452226 --- /dev/null +++ b/src/Volo.Abp.Security/Volo.Abp.Security.csproj @@ -0,0 +1,20 @@ + + + + + + netstandard2.0 + Volo.Abp.Security + Volo.Abp.Security + $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; + false + false + false + + + + + + + + diff --git a/src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs b/src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs new file mode 100644 index 0000000000..7ea4caa5f0 --- /dev/null +++ b/src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs @@ -0,0 +1,13 @@ +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.Modularity; + +namespace Volo.Abp.Security +{ + public class AbpSecurityModule : AbpModule + { + public override void ConfigureServices(IServiceCollection services) + { + services.AddAssemblyOf(); + } + } +} diff --git a/src/Volo.Abp/Volo/Abp/Security/Claims/AbpClaimTypes.cs b/src/Volo.Abp.Security/Volo/Abp/Security/Claims/AbpClaimTypes.cs similarity index 100% rename from src/Volo.Abp/Volo/Abp/Security/Claims/AbpClaimTypes.cs rename to src/Volo.Abp.Security/Volo/Abp/Security/Claims/AbpClaimTypes.cs diff --git a/src/Volo.Abp/Volo/Abp/Security/Claims/ICurrentPrincipalAccessor.cs b/src/Volo.Abp.Security/Volo/Abp/Security/Claims/ICurrentPrincipalAccessor.cs similarity index 100% rename from src/Volo.Abp/Volo/Abp/Security/Claims/ICurrentPrincipalAccessor.cs rename to src/Volo.Abp.Security/Volo/Abp/Security/Claims/ICurrentPrincipalAccessor.cs diff --git a/src/Volo.Abp/Volo/Abp/Security/Claims/ThreadCurrentPrincipalAccessor.cs b/src/Volo.Abp.Security/Volo/Abp/Security/Claims/ThreadCurrentPrincipalAccessor.cs similarity index 100% rename from src/Volo.Abp/Volo/Abp/Security/Claims/ThreadCurrentPrincipalAccessor.cs rename to src/Volo.Abp.Security/Volo/Abp/Security/Claims/ThreadCurrentPrincipalAccessor.cs diff --git a/src/Volo.Abp/Volo.Abp.csproj b/src/Volo.Abp/Volo.Abp.csproj index daf16d06a2..efed6f3efc 100644 --- a/src/Volo.Abp/Volo.Abp.csproj +++ b/src/Volo.Abp/Volo.Abp.csproj @@ -20,6 +20,7 @@ + diff --git a/src/Volo.Abp/Volo/Abp/AbpCommonModule.cs b/src/Volo.Abp/Volo/Abp/AbpCommonModule.cs index 509f19aa0e..8db6c786b5 100644 --- a/src/Volo.Abp/Volo/Abp/AbpCommonModule.cs +++ b/src/Volo.Abp/Volo/Abp/AbpCommonModule.cs @@ -6,6 +6,7 @@ using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy; using Volo.Abp.ObjectMapping; +using Volo.Abp.Security; using Volo.Abp.Threading; using Volo.Abp.Uow; using Volo.Abp.Validation; @@ -20,6 +21,7 @@ namespace Volo.Abp [DependsOn(typeof(AbpMultiTenancyAbstractionsModule))] [DependsOn(typeof(AbpObjectMappingModule))] [DependsOn(typeof(AbpValidationModule))] + [DependsOn(typeof(AbpSecurityModule))] public class AbpCommonModule : AbpModule { public override void PreConfigureServices(IServiceCollection services)