Skip to content

Commit

Permalink
Massive projects change for separate migrate projects
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPSmith committed Apr 9, 2022
1 parent 489db52 commit c664112
Show file tree
Hide file tree
Showing 262 changed files with 550 additions and 495 deletions.
26 changes: 13 additions & 13 deletions AuthPermissions.AspNetCore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AuthPermissions.SqlServer",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SetupMigrations", "SetupMigrations\SetupMigrations.csproj", "{E2A88CD3-9AF2-442B-AB7D-0EA9927FD2D5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthPermissions.DataLayer", "AuthPermissions.DataLayer\AuthPermissions.DataLayer.csproj", "{5C54901F-8445-4C60-8133-788C04A75A50}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthPermissions.BaseCode", "AuthPermissions.BaseCode\AuthPermissions.BaseCode.csproj", "{D4E6705B-2D35-4A43-9E02-EC77EC212441}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -249,18 +249,18 @@ Global
{E2A88CD3-9AF2-442B-AB7D-0EA9927FD2D5}.Release|x64.Build.0 = Release|Any CPU
{E2A88CD3-9AF2-442B-AB7D-0EA9927FD2D5}.Release|x86.ActiveCfg = Release|Any CPU
{E2A88CD3-9AF2-442B-AB7D-0EA9927FD2D5}.Release|x86.Build.0 = Release|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Debug|x64.ActiveCfg = Debug|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Debug|x64.Build.0 = Debug|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Debug|x86.ActiveCfg = Debug|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Debug|x86.Build.0 = Debug|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Release|Any CPU.Build.0 = Release|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Release|x64.ActiveCfg = Release|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Release|x64.Build.0 = Release|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Release|x86.ActiveCfg = Release|Any CPU
{5C54901F-8445-4C60-8133-788C04A75A50}.Release|x86.Build.0 = Release|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Debug|x64.ActiveCfg = Debug|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Debug|x64.Build.0 = Debug|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Debug|x86.ActiveCfg = Debug|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Debug|x86.Build.0 = Debug|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Release|Any CPU.Build.0 = Release|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Release|x64.ActiveCfg = Release|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Release|x64.Build.0 = Release|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Release|x86.ActiveCfg = Release|Any CPU
{D4E6705B-2D35-4A43-9E02-EC77EC212441}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Threading.Tasks;
using AuthPermissions.AspNetCore.AccessTenantData.Services;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using StatusGeneric;

namespace AuthPermissions.AspNetCore.AccessTenantData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

using System.Threading.Tasks;
using AuthPermissions.AdminCode;
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.Classes;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.Classes;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.SetupCode;
using Microsoft.EntityFrameworkCore;
using StatusGeneric;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AuthPermissions.DataLayer\AuthPermissions.DataLayer.csproj" />
<ProjectReference Include="..\AuthPermissions\AuthPermissions.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

using AuthPermissions.AspNetCore.AccessTenantData;
using AuthPermissions.AspNetCore.AccessTenantData.Services;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.SetupCode;
using Microsoft.AspNetCore.Http;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

using AuthPermissions.AspNetCore.AccessTenantData;
using AuthPermissions.AspNetCore.AccessTenantData.Services;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.SetupCode;
using Microsoft.AspNetCore.Http;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Http;

namespace AuthPermissions.AspNetCore.GetDataKeyCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using AuthPermissions.AspNetCore.AccessTenantData;
using AuthPermissions.AspNetCore.Services;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Http;

namespace AuthPermissions.AspNetCore.GetDataKeyCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using AuthPermissions.AspNetCore.AccessTenantData;
using AuthPermissions.AspNetCore.Services;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Http;

namespace AuthPermissions.AspNetCore.GetDataKeyCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under MIT license. See License.txt in the project root for license information.

using AuthPermissions.AspNetCore.Services;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Http;

namespace AuthPermissions.AspNetCore.GetDataKeyCode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;

namespace AuthPermissions.AspNetCore.GetDataKeyCode
{
Expand Down
2 changes: 1 addition & 1 deletion AuthPermissions.AspNetCore/HasPermissionAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under MIT license. See License.txt in the project root for license information.

using System;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Authorization;

namespace AuthPermissions.AspNetCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

using System;
using System.Threading.Tasks;
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.SetupCode;
using AuthPermissions.SetupCode.Factories;
using Microsoft.Extensions.DependencyInjection;
Expand Down
7 changes: 4 additions & 3 deletions AuthPermissions.AspNetCore/JwtTokenCode/TokenBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.Classes;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.Classes;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using Microsoft.Extensions.Logging;
using Microsoft.IdentityModel.Tokens;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
using System.Security.Claims;
using AuthPermissions.AdminCode;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using AuthPermissions.PermissionsCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.PermissionsCode;
using Microsoft.AspNetCore.Authorization;

namespace AuthPermissions.AspNetCore.PolicyCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Runtime.InteropServices.ComTypes;
using System.Security.Claims;
using System.Threading.Tasks;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;

Expand Down
4 changes: 2 additions & 2 deletions AuthPermissions.AspNetCore/Services/DisableJwtRefreshToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

using System.Linq;
using System.Threading.Tasks;
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using Microsoft.EntityFrameworkCore;

namespace AuthPermissions.AspNetCore.Services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under MIT license. See License.txt in the project root for license information.

using System.Threading.Tasks;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.BulkLoadServices.Concrete;
using AuthPermissions.SetupCode;
using Microsoft.AspNetCore.Identity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text.Json;
using AuthPermissions.CommonCode;
using AuthPermissions.BaseCode.CommonCode;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

Expand Down
2 changes: 1 addition & 1 deletion AuthPermissions.AspNetCore/Services/ShardingConnections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
Expand Down
10 changes: 6 additions & 4 deletions AuthPermissions.AspNetCore/SetupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
using AuthPermissions.AspNetCore.PolicyCode;
using AuthPermissions.AspNetCore.Services;
using AuthPermissions.AspNetCore.StartupServices;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using AuthPermissions.BaseCode.PermissionsCode;
using AuthPermissions.BaseCode.PermissionsCode.Services;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.BulkLoadServices;
using AuthPermissions.BulkLoadServices.Concrete;
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.PermissionsCode;
using AuthPermissions.PermissionsCode.Services;
using AuthPermissions.SetupCode;
using AuthPermissions.SetupCode.Factories;
using Microsoft.AspNetCore.Authorization;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

using System;
using System.Threading.Tasks;
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using AuthPermissions.BaseCode.SetupCode;
using AuthPermissions.SetupCode;
using AuthPermissions.SetupCode.Factories;
using Microsoft.Extensions.DependencyInjection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using AuthPermissions.CommonCode;
using AuthPermissions.DataLayer.EfCode;
using AuthPermissions.SetupCode;
using AuthPermissions.SetupCode;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using RunMethodsSequentially;
using System;
using System.Threading.Tasks;
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.DataLayer.EfCode;
using AuthPermissions.BaseCode.SetupCode;

namespace AuthPermissions.AspNetCore.StartupServices
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using System;
using System.ComponentModel;
using StatusGeneric;

namespace AuthPermissions
namespace AuthPermissions.BaseCode
{
/// <summary>
/// This contains the data that the JWT token (and optional RefreshToken)
Expand Down
20 changes: 20 additions & 0 deletions AuthPermissions.BaseCode/AuthPermissions.BaseCode.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EntityFrameworkCore.Exceptions.PostgreSQL" Version="3.1.4" />
<PackageReference Include="EntityFrameworkCore.Exceptions.Sqlite" Version="3.1.4" />
<PackageReference Include="EntityFrameworkCore.Exceptions.SqlServer" Version="3.1.4" />
<PackageReference Include="GenericServices.StatusGeneric" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.0" />
<PackageReference Include="Net.RunMethodsSequentially" Version="1.3.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using AuthPermissions.AdminCode;
using AuthPermissions.CommonCode;
using AuthPermissions.SetupCode;
using AuthPermissions.BaseCode.CommonCode;
using AuthPermissions.BaseCode.SetupCode;
using Microsoft.Extensions.Configuration;

namespace AuthPermissions
namespace AuthPermissions.BaseCode
{
/// <summary>
/// This contains the options set by the developer and data that is passed between setup extension methods
Expand Down Expand Up @@ -57,7 +56,7 @@ public class AuthPermissionsOptions

/// <summary>
/// This is used by the Net.RunMethodsSequentially library to lock a folder
/// If UseRunMethodsSequentially is true, then this propery must be filled
/// If UseRunMethodsSequentially is true, then this property must be filled
/// with a path to a directory in your running application
/// </summary>
public string PathToFolderToLock { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using System;

namespace AuthPermissions.CommonCode
namespace AuthPermissions.BaseCode.CommonCode
{
/// <summary>
/// A AuthPermissions for bad data errors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using System;

namespace AuthPermissions.CommonCode
namespace AuthPermissions.BaseCode.CommonCode
{
/// <summary>
/// A AuthPermissions for internal errors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using AuthPermissions.PermissionsCode;
using AuthPermissions.BaseCode.PermissionsCode;

namespace AuthPermissions.CommonCode
namespace AuthPermissions.BaseCode.CommonCode
{
/// <summary>
/// This contains extension method about ASP.NET Core <see cref="Claim"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.

using System;
using System.Security.Cryptography;
using System.Text;

namespace AuthPermissions.CommonCode;
namespace AuthPermissions.BaseCode.CommonCode;

//thanks to https://csharpcode.org/blog/simple-encryption-and-decryption-in-c/
//Updated to take in an encryption key via AuhP's options
Expand Down
Loading

0 comments on commit c664112

Please sign in to comment.