Refactor and consolidate Shared project structure. #1045
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #1043
The project structure has been modified to remove the "Shared" project from the "api\modules" directory and add a new "Shared" project in the "Shared" directory. The solution configuration has been updated accordingly. References to the old "Shared" project have been replaced with references to the new "Shared" project.
The
TenantConstants
andIdentityConstants
classes have been moved to theFSH.Starter.Shared.Authorization
namespace. TheIdentityDbInitializer
andTokenService
classes have been updated to use the new constants. TheClaimsPrincipalExtensions
class has been removed.Various endpoint and service classes have been updated to use the new
FSH.Starter.Shared.Authorization
namespace. TheCore.csproj
andInfrastructure.csproj
files have been updated to reference the new "Shared" project.The
FSH.Framework.Core.Tenant
andFSH.Framework.Infrastructure.Tenant
namespaces and their associated classes have been removed, and theFSH.Starter.Shared.Authorization
namespace has been added. Unused namespaces have been removed from multiple files.The
Shared.csproj
file was updated to target .NET 8.0 and enable implicit usings and nullable reference types. New static classes for constants related to image formats, claims, actions, permissions, resources, roles, identity, and tenants have been added.