From 59379533c2ea284590d1b7ec1fcd12ce98657762 Mon Sep 17 00:00:00 2001
From: BigMakCode <81349914+BigMakCode@users.noreply.github.com>
Date: Fri, 2 Aug 2024 15:02:21 -0700
Subject: [PATCH] Refactor and reorganize authorization and Sentry projects
Removed obsolete files and reorganized the project structure:
- Deleted `IClaimProvider.cs`, `ClaimBuilder.cs`, `ConfigurationExtensions.cs`, `ServiceCollectionExtensions.cs`, `AllowAnonymousAuthorizationHandler.cs`, `JwtSettings.cs`, `ITokenProvider.cs`, `JwtTokenProvider.cs`, `WebHostBuilderExtensions.cs`, and `UserFactory.cs`.
- Removed `EasyExtensions.Authorization.csproj` and `EasyExtensions.Sentry.csproj`.
- Updated `EasyExtensions.sln` to remove old project references and add new ones.
- Added `EasyExtensions.AspNetCore.Authorization.csproj` for JWT handling.
- Added `EasyExtensions.AspNetCore.Sentry.csproj` for Sentry integration.
---
.../Abstractions/IClaimProvider.cs | 0
.../Builders/ClaimBuilder.cs | 0
.../EasyExtensions.AspNetCore.Authorization.csproj} | 8 ++++----
.../Extensions/ConfigurationExtensions.cs | 0
.../Extensions/ServiceCollectionExtensions.cs | 0
.../Handlers/AllowAnonymousAuthorizationHandler.cs | 0
.../Models/JwtSettings.cs | 0
.../Services/ITokenProvider.cs | 0
.../Services/JwtTokenProvider.cs | 0
.../packageIcon.png | Bin
.../EasyExtensions.AspNetCore.Sentry.csproj} | 8 ++++----
.../Extensions/WebHostBuilderExtensions.cs | 0
.../Factories/UserFactory.cs | 0
.../packageIcon.png | Bin
Sources/EasyExtensions.sln | 6 +++---
15 files changed, 11 insertions(+), 11 deletions(-)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Abstractions/IClaimProvider.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Builders/ClaimBuilder.cs (100%)
rename Sources/{EasyExtensions.Authorization/EasyExtensions.Authorization.csproj => EasyExtensions.AspNetCore.Authorization/EasyExtensions.AspNetCore.Authorization.csproj} (86%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Extensions/ConfigurationExtensions.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Extensions/ServiceCollectionExtensions.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Handlers/AllowAnonymousAuthorizationHandler.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Models/JwtSettings.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Services/ITokenProvider.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/Services/JwtTokenProvider.cs (100%)
rename Sources/{EasyExtensions.Authorization => EasyExtensions.AspNetCore.Authorization}/packageIcon.png (100%)
rename Sources/{EasyExtensions.Sentry/EasyExtensions.Sentry.csproj => EasyExtensions.AspNetCore.Sentry/EasyExtensions.AspNetCore.Sentry.csproj} (86%)
rename Sources/{EasyExtensions.Sentry => EasyExtensions.AspNetCore.Sentry}/Extensions/WebHostBuilderExtensions.cs (100%)
rename Sources/{EasyExtensions.Sentry => EasyExtensions.AspNetCore.Sentry}/Factories/UserFactory.cs (100%)
rename Sources/{EasyExtensions.Sentry => EasyExtensions.AspNetCore.Sentry}/packageIcon.png (100%)
diff --git a/Sources/EasyExtensions.Authorization/Abstractions/IClaimProvider.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Abstractions/IClaimProvider.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Abstractions/IClaimProvider.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Abstractions/IClaimProvider.cs
diff --git a/Sources/EasyExtensions.Authorization/Builders/ClaimBuilder.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Builders/ClaimBuilder.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Builders/ClaimBuilder.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Builders/ClaimBuilder.cs
diff --git a/Sources/EasyExtensions.Authorization/EasyExtensions.Authorization.csproj b/Sources/EasyExtensions.AspNetCore.Authorization/EasyExtensions.AspNetCore.Authorization.csproj
similarity index 86%
rename from Sources/EasyExtensions.Authorization/EasyExtensions.Authorization.csproj
rename to Sources/EasyExtensions.AspNetCore.Authorization/EasyExtensions.AspNetCore.Authorization.csproj
index f85208f..93df32e 100644
--- a/Sources/EasyExtensions.Authorization/EasyExtensions.Authorization.csproj
+++ b/Sources/EasyExtensions.AspNetCore.Authorization/EasyExtensions.AspNetCore.Authorization.csproj
@@ -5,17 +5,17 @@
enable
Vadim Belov
bvdcode
- EasyExtensions.Authorization
+ EasyExtensions.AspNetCore.Authorization
Ready-to-use library for simplifying the development of .NET applications.
Copyright © Vadim Belov 2024
Ready-to-use library for simplifying the development of .NET applications.
en-US
-
EasyExtensions.Authorization
- EasyExtensions.Authorization
+ EasyExtensions.AspNetCore.Authorization
+ EasyExtensions.AspNetCore.Authorization
ASP.NET,EFCore,Authorization,Database,Extensions,JWT
README.md
packageIcon.png
- https://raw.githubusercontent.com/bvdcode/EasyExtensions/main/Sources/EasyExtensions.Authorization/packageIcon.png
+ https://raw.githubusercontent.com/bvdcode/EasyExtensions/main/Sources/EasyExtensions.AspNetCore.Authorization/packageIcon.png
https://github.com/bvdcode/EasyExtensions
https://github.com/bvdcode/EasyExtensions
MIT
diff --git a/Sources/EasyExtensions.Authorization/Extensions/ConfigurationExtensions.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Extensions/ConfigurationExtensions.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Extensions/ConfigurationExtensions.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Extensions/ConfigurationExtensions.cs
diff --git a/Sources/EasyExtensions.Authorization/Extensions/ServiceCollectionExtensions.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Extensions/ServiceCollectionExtensions.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Extensions/ServiceCollectionExtensions.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Extensions/ServiceCollectionExtensions.cs
diff --git a/Sources/EasyExtensions.Authorization/Handlers/AllowAnonymousAuthorizationHandler.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Handlers/AllowAnonymousAuthorizationHandler.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Handlers/AllowAnonymousAuthorizationHandler.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Handlers/AllowAnonymousAuthorizationHandler.cs
diff --git a/Sources/EasyExtensions.Authorization/Models/JwtSettings.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Models/JwtSettings.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Models/JwtSettings.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Models/JwtSettings.cs
diff --git a/Sources/EasyExtensions.Authorization/Services/ITokenProvider.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Services/ITokenProvider.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Services/ITokenProvider.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Services/ITokenProvider.cs
diff --git a/Sources/EasyExtensions.Authorization/Services/JwtTokenProvider.cs b/Sources/EasyExtensions.AspNetCore.Authorization/Services/JwtTokenProvider.cs
similarity index 100%
rename from Sources/EasyExtensions.Authorization/Services/JwtTokenProvider.cs
rename to Sources/EasyExtensions.AspNetCore.Authorization/Services/JwtTokenProvider.cs
diff --git a/Sources/EasyExtensions.Authorization/packageIcon.png b/Sources/EasyExtensions.AspNetCore.Authorization/packageIcon.png
similarity index 100%
rename from Sources/EasyExtensions.Authorization/packageIcon.png
rename to Sources/EasyExtensions.AspNetCore.Authorization/packageIcon.png
diff --git a/Sources/EasyExtensions.Sentry/EasyExtensions.Sentry.csproj b/Sources/EasyExtensions.AspNetCore.Sentry/EasyExtensions.AspNetCore.Sentry.csproj
similarity index 86%
rename from Sources/EasyExtensions.Sentry/EasyExtensions.Sentry.csproj
rename to Sources/EasyExtensions.AspNetCore.Sentry/EasyExtensions.AspNetCore.Sentry.csproj
index d54f06f..ab89aaf 100644
--- a/Sources/EasyExtensions.Sentry/EasyExtensions.Sentry.csproj
+++ b/Sources/EasyExtensions.AspNetCore.Sentry/EasyExtensions.AspNetCore.Sentry.csproj
@@ -5,17 +5,17 @@
enable
Vadim Belov
bvdcode
- EasyExtensions.Sentry
+ EasyExtensions.AspNetCore.Sentry
Ready-to-use library for simplifying the development of .NET applications.
Copyright © Vadim Belov 2024
Ready-to-use library for simplifying the development of .NET applications.
en-US
- EasyExtensions.Sentry
- EasyExtensions.Sentry
+ EasyExtensions.AspNetCore.Sentry
+ EasyExtensions.AspNetCore.Sentry
ASP.NET,EFCore,Sentry,Database,Extensions
README.md
packageIcon.png
- https://raw.githubusercontent.com/bvdcode/EasyExtensions/main/Sources/EasyExtensions.Sentry/packageIcon.png
+ https://raw.githubusercontent.com/bvdcode/EasyExtensions/main/Sources/EasyExtensions.AspNetCore.Sentry/packageIcon.png
https://github.com/bvdcode/EasyExtensions
https://github.com/bvdcode/EasyExtensions
MIT
diff --git a/Sources/EasyExtensions.Sentry/Extensions/WebHostBuilderExtensions.cs b/Sources/EasyExtensions.AspNetCore.Sentry/Extensions/WebHostBuilderExtensions.cs
similarity index 100%
rename from Sources/EasyExtensions.Sentry/Extensions/WebHostBuilderExtensions.cs
rename to Sources/EasyExtensions.AspNetCore.Sentry/Extensions/WebHostBuilderExtensions.cs
diff --git a/Sources/EasyExtensions.Sentry/Factories/UserFactory.cs b/Sources/EasyExtensions.AspNetCore.Sentry/Factories/UserFactory.cs
similarity index 100%
rename from Sources/EasyExtensions.Sentry/Factories/UserFactory.cs
rename to Sources/EasyExtensions.AspNetCore.Sentry/Factories/UserFactory.cs
diff --git a/Sources/EasyExtensions.Sentry/packageIcon.png b/Sources/EasyExtensions.AspNetCore.Sentry/packageIcon.png
similarity index 100%
rename from Sources/EasyExtensions.Sentry/packageIcon.png
rename to Sources/EasyExtensions.AspNetCore.Sentry/packageIcon.png
diff --git a/Sources/EasyExtensions.sln b/Sources/EasyExtensions.sln
index 318f684..ad55a38 100644
--- a/Sources/EasyExtensions.sln
+++ b/Sources/EasyExtensions.sln
@@ -7,7 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions", "EasyExten
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.Quartz", "EasyExtensions.Quartz\EasyExtensions.Quartz.csproj", "{364EC487-85F8-4CFE-92C1-2E7303082F97}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.Authorization", "EasyExtensions.Authorization\EasyExtensions.Authorization.csproj", "{D7463A1F-138A-4CD9-B0B7-C2C7B0D9BC52}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.AspNetCore.Authorization", "EasyExtensions.AspNetCore.Authorization\EasyExtensions.AspNetCore.Authorization.csproj", "{D7463A1F-138A-4CD9-B0B7-C2C7B0D9BC52}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.Drawing", "EasyExtensions.Drawing\EasyExtensions.Drawing.csproj", "{09EB9C06-E11C-4583-A092-E73BBCEBF1D3}"
EndProject
@@ -15,9 +15,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.EntityFramew
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.Tests", "EasyExtensions.Tests\EasyExtensions.Tests.csproj", "{578C727F-EC7A-49F9-8F99-F9238349D3F9}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.Sentry", "EasyExtensions.Sentry\EasyExtensions.Sentry.csproj", "{72C9DD2F-FCB6-471B-B0E2-D3F4171A24D1}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.AspNetCore.Sentry", "EasyExtensions.AspNetCore.Sentry\EasyExtensions.AspNetCore.Sentry.csproj", "{72C9DD2F-FCB6-471B-B0E2-D3F4171A24D1}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyExtensions.AspNetCore", "EasyExtensions.AspNetCore\EasyExtensions.AspNetCore.csproj", "{F6DDCB86-FDD9-423A-AE38-6D857CA2AE05}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyExtensions.AspNetCore", "EasyExtensions.AspNetCore\EasyExtensions.AspNetCore.csproj", "{F6DDCB86-FDD9-423A-AE38-6D857CA2AE05}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution