From 41c2f008344be534da0e8c1a89d2ec815f4ee42a Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 8 Mar 2025 12:08:14 +0100 Subject: [PATCH] refactor: rename files and update namespaces for Palantir integration --- .../.idea/.gitignore | 0 .../.idea/indexLayout.xml | 0 .../Controllers/AuthController.cs | 26 +++++++++++++++++++ .../Program.cs | 0 .../Properties/launchSettings.json | 0 ...Suspectus.Gandalf.Bridgekeeper.Api.csproj} | 1 + .../appsettings.Development.json | 0 .../appsettings.json | 0 .../Entities/Base/IMappingEntity.cs | 3 --- .../Entities/Security/AuthorityType.cs | 7 ----- .../Entities/Security/TokenType.cs | 7 ----- .../Entities/Subject/SignIn/SignInMethod.cs | 8 ------ .../Entities/Tenant/OwnerData.cs | 8 ------ .../Invoker.cs | 2 +- .../InvokerContext.cs | 2 +- ...ctus.Gandalf.Palantir.Abstractions.csproj} | 1 - .../Commands/AuthCodeRequestCommand.cs | 4 +-- .../Commands/CreateAuthCodeCommand.cs | 4 +-- .../Commands/CreateTokensCommand.cs | 4 +-- .../Commands/HashPasswordCommand.cs | 2 +- .../Commands/IGrCommand.cs | 2 +- .../Commands/RegisterCommand.cs | 4 +-- .../Controllers/AuthController.cs | 4 +-- .../Extensions/ResultExtentions.cs | 2 +- .../Handlers/Commands/IGrCommandHandler.cs | 4 +-- .../Commands/RegisterCommandHandler.cs | 14 +++++----- .../Security/AuthCodeRequestCommandHandler.cs | 14 +++++----- .../Security/CreateAuthCodeCommandHandler.cs | 12 ++++----- .../Security/CreateTokensCommandHandler.cs | 16 ++++++------ .../Security/GetTokensCommandHandler.cs | 12 ++++----- .../Security/PasswordHashingHandler.cs | 8 +++--- .../Program.cs | 10 +++---- .../Properties/launchSettings.json | 0 .../Suspectus.Gandalf.Palantir.Api.csproj} | 5 ++-- .../TestController.cs | 14 +++++----- .../appsettings.Development.json | 0 .../appsettings.json | 0 .../Database/ApplicationContext.cs | 8 +++--- .../Database/CoreContext.cs | 14 +++++----- .../Database/GrDbConnectionInterceptor.cs | 4 +-- .../Repositories/AuthCodeRepository.cs | 4 +-- .../Database/Repositories/GrRepository.cs | 4 +-- .../Database/Repositories/IGrRepository.cs | 4 +-- .../Repositories/SubjectRepository.cs | 4 +-- .../Repositories/TokenMetadataRepository.cs | 5 ++-- .../Dto/AuthCodeDto.cs | 2 +- .../Dto/TokenDto.cs | 2 +- .../Entities/App/AppRelationEntity.cs | 10 +++---- .../Entities/App/AppSubjectRelationEntity.cs | 12 ++++----- .../Entities/Base/EntityVisibility.cs | 2 +- .../Entities/Base/IEntity.cs | 2 +- .../Entities/Base/IMappingEntity.cs | 3 +++ .../Entities/Base/IdData.cs | 2 +- .../Entities/Base/SubjectData.cs | 2 +- .../Entities/Base/TenantRelationData.cs | 2 +- .../Entities/Base/VisibilityData.cs | 2 +- .../Entities/ContentKeyAttribute.cs | 2 +- ...RelationInternalAuthorityRelationEntity.cs | 12 ++++----- .../Entities/Security/AuthCodeEntity.cs | 4 +-- .../Entities/Security/AuthorityEntity.cs | 8 +++--- .../Entities/Security/AuthorityType.cs | 7 +++++ ...RelationInternalAuthorityRelationEntity.cs | 10 +++---- .../Entities/Security/TokenMetaDataEntity.cs | 4 +-- .../Entities/Security/TokenType.cs | 7 +++++ .../Entities/Subject/SignIn/SignInEntity.cs | 4 +-- .../Entities/Subject/SignIn/SignInMethod.cs | 8 ++++++ .../Entities/Subject/SubjectEntity.cs | 10 +++---- .../Entities/Tenant/OwnerData.cs | 8 ++++++ .../Entities/Tenant/TenantEntity.cs | 8 +++--- .../Tenant/TenantSubjectRelationEntity.cs | 10 +++---- .../Entities/Version/IVersionEntity.cs | 8 +++--- .../Entities/Version/VersionAction.cs | 2 +- .../Extensions/StringExtensions.cs | 2 +- .../Mapper/AuthCodeDtoMappingProfile.cs | 6 ++--- .../Migrations/20240903154112_sus.Designer.cs | 2 +- .../Migrations/20240903154112_sus.cs | 0 .../20240914003536_addTokens.Designer.cs | 2 +- .../Migrations/20240914003536_addTokens.cs | 0 .../20240914005530_affwaf.Designer.cs | 2 +- .../Migrations/20240914005530_affwaf.cs | 0 .../20240914012943_fawfghh.Designer.cs | 2 +- .../Migrations/20240914012943_fawfghh.cs | 0 .../20240914014850_gjjjjjj.Designer.cs | 2 +- .../Migrations/20240914014850_gjjjjjj.cs | 0 .../20240914224344_jsoikgsoieg.Designer.cs | 2 +- .../Migrations/20240914224344_jsoikgsoieg.cs | 0 .../20240919005908_afwawfawf.Designer.cs | 2 +- .../Migrations/20240919005908_afwawfawf.cs | 0 .../20240919010339_ffffff.Designer.cs | 2 +- .../Migrations/20240919010339_ffffff.cs | 0 .../20240919010748_jmäpromh.Designer.cs | 2 +- .../Migrations/20240919010748_jmäpromh.cs | 0 .../20240919012025_fghdhhzttr.Designer.cs | 2 +- .../Migrations/20240919012025_fghdhhzttr.cs | 0 .../20240921214234_klöhmpdmpmgr.Designer.cs | 2 +- .../20240921214234_klöhmpdmpmgr.cs | 0 .../ApplicationContextModelSnapshot.cs | 2 +- .../Suspectus.Gandalf.Palantir.Data.csproj} | 3 +-- .../GrAuthorizeAttribute.cs | 6 ++--- .../GandalfRebornJwtTokenAuthExtensions.cs | 2 +- .../GandalfRebornJwtTokenAuthSchemeHandler.cs | 6 ++--- .../GandalfRebornJwtTokenAuthSchemeOptions.cs | 2 +- ...uspectus.Gandalf.Palantir.Security.csproj} | 5 ++-- .../{Suspectus.sln => Suspectus.Gandalf.sln} | 14 +++++----- 104 files changed, 247 insertions(+), 223 deletions(-) rename src/dotnet/.idea/{.idea.Suspectus => .idea.Suspectus.Gandalf}/.idea/.gitignore (100%) rename src/dotnet/.idea/{.idea.Suspectus => .idea.Suspectus.Gandalf}/.idea/indexLayout.xml (100%) create mode 100644 src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Controllers/AuthController.cs rename src/dotnet/{Suspectus.Mithrandir.Api => Suspectus.Gandalf.Bridgekeeper.Api}/Program.cs (100%) rename src/dotnet/{Suspectus.Mithrandir.Api => Suspectus.Gandalf.Bridgekeeper.Api}/Properties/launchSettings.json (100%) rename src/dotnet/{Suspectus.Mithrandir.Api/Suspectus.Mithrandir.Api.csproj => Suspectus.Gandalf.Bridgekeeper.Api/Suspectus.Gandalf.Bridgekeeper.Api.csproj} (84%) rename src/dotnet/{Suspectus.Mithrandir.Api => Suspectus.Gandalf.Bridgekeeper.Api}/appsettings.Development.json (100%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Bridgekeeper.Api}/appsettings.json (100%) delete mode 100644 src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IMappingEntity.cs delete mode 100644 src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityType.cs delete mode 100644 src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenType.cs delete mode 100644 src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInMethod.cs delete mode 100644 src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/OwnerData.cs rename src/dotnet/{Suspectus.Gandalf.Abstractions => Suspectus.Gandalf.Palantir.Abstractions}/Invoker.cs (97%) rename src/dotnet/{Suspectus.Gandalf.Abstractions => Suspectus.Gandalf.Palantir.Abstractions}/InvokerContext.cs (59%) rename src/dotnet/{Suspectus.Gandalf.Abstractions/Suspectus.Gandalf.Abstractions.csproj => Suspectus.Gandalf.Palantir.Abstractions/Suspectus.Gandalf.Palantir.Abstractions.csproj} (76%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Commands/AuthCodeRequestCommand.cs (83%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Commands/CreateAuthCodeCommand.cs (73%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Commands/CreateTokensCommand.cs (60%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Commands/HashPasswordCommand.cs (74%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Commands/IGrCommand.cs (56%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Commands/RegisterCommand.cs (69%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Controllers/AuthController.cs (91%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Extensions/ResultExtentions.cs (94%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Commands/IGrCommandHandler.cs (58%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Commands/RegisterCommandHandler.cs (76%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Security/AuthCodeRequestCommandHandler.cs (88%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Security/CreateAuthCodeCommandHandler.cs (78%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Security/CreateTokensCommandHandler.cs (85%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Security/GetTokensCommandHandler.cs (86%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Handlers/Security/PasswordHashingHandler.cs (77%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Program.cs (89%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/Properties/launchSettings.json (100%) rename src/dotnet/{Suspectus.Gandalf.Api/Suspectus.Gandalf.Api.csproj => Suspectus.Gandalf.Palantir.Api/Suspectus.Gandalf.Palantir.Api.csproj} (81%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/TestController.cs (89%) rename src/dotnet/{Suspectus.Gandalf.Api => Suspectus.Gandalf.Palantir.Api}/appsettings.Development.json (100%) rename src/dotnet/{Suspectus.Mithrandir.Api => Suspectus.Gandalf.Palantir.Api}/appsettings.json (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/ApplicationContext.cs (97%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/CoreContext.cs (94%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/GrDbConnectionInterceptor.cs (89%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/Repositories/AuthCodeRepository.cs (61%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/Repositories/GrRepository.cs (96%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/Repositories/IGrRepository.cs (85%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/Repositories/SubjectRepository.cs (60%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Database/Repositories/TokenMetadataRepository.cs (64%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Dto/AuthCodeDto.cs (79%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Dto/TokenDto.cs (73%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/App/AppRelationEntity.cs (69%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/App/AppSubjectRelationEntity.cs (70%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Base/EntityVisibility.cs (59%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Base/IEntity.cs (50%) create mode 100644 src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IMappingEntity.cs rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Base/IdData.cs (57%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Base/SubjectData.cs (62%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Base/TenantRelationData.cs (65%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Base/VisibilityData.cs (66%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/ContentKeyAttribute.cs (64%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs (74%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Security/AuthCodeEntity.cs (75%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Security/AuthorityEntity.cs (71%) create mode 100644 src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityType.cs rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs (78%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Security/TokenMetaDataEntity.cs (69%) create mode 100644 src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenType.cs rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Subject/SignIn/SignInEntity.cs (70%) create mode 100644 src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInMethod.cs rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Subject/SubjectEntity.cs (50%) create mode 100644 src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/OwnerData.cs rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Tenant/TenantEntity.cs (75%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Tenant/TenantSubjectRelationEntity.cs (74%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Version/IVersionEntity.cs (65%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Entities/Version/VersionAction.cs (57%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Extensions/StringExtensions.cs (93%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Mapper/AuthCodeDtoMappingProfile.cs (53%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240903154112_sus.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240903154112_sus.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914003536_addTokens.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914003536_addTokens.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914005530_affwaf.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914005530_affwaf.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914012943_fawfghh.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914012943_fawfghh.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914014850_gjjjjjj.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914014850_gjjjjjj.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914224344_jsoikgsoieg.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240914224344_jsoikgsoieg.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919005908_afwawfawf.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919005908_afwawfawf.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919010339_ffffff.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919010339_ffffff.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919010748_jmäpromh.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919010748_jmäpromh.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919012025_fghdhhzttr.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240919012025_fghdhhzttr.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/20240921214234_klöhmpdmpmgr.cs (100%) rename src/dotnet/{Suspectus.Gandalf.Data => Suspectus.Gandalf.Palantir.Data}/Migrations/ApplicationContextModelSnapshot.cs (99%) rename src/dotnet/{Suspectus.Gandalf.Data/Suspectus.Gandalf.Data.csproj => Suspectus.Gandalf.Palantir.Data/Suspectus.Gandalf.Palantir.Data.csproj} (82%) rename src/dotnet/{Suspectus.Gandalf.Security => Suspectus.Gandalf.Palantir.Security}/GrAuthorizeAttribute.cs (94%) rename src/dotnet/{Suspectus.Gandalf.Security => Suspectus.Gandalf.Palantir.Security}/Scheme/GandalfRebornJwtTokenAuthExtensions.cs (90%) rename src/dotnet/{Suspectus.Gandalf.Security => Suspectus.Gandalf.Palantir.Security}/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs (97%) rename src/dotnet/{Suspectus.Gandalf.Security => Suspectus.Gandalf.Palantir.Security}/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs (81%) rename src/dotnet/{Suspectus.Gandalf.Security/Suspectus.Gandalf.Security.csproj => Suspectus.Gandalf.Palantir.Security/Suspectus.Gandalf.Palantir.Security.csproj} (64%) rename src/dotnet/{Suspectus.sln => Suspectus.Gandalf.sln} (73%) diff --git a/src/dotnet/.idea/.idea.Suspectus/.idea/.gitignore b/src/dotnet/.idea/.idea.Suspectus.Gandalf/.idea/.gitignore similarity index 100% rename from src/dotnet/.idea/.idea.Suspectus/.idea/.gitignore rename to src/dotnet/.idea/.idea.Suspectus.Gandalf/.idea/.gitignore diff --git a/src/dotnet/.idea/.idea.Suspectus/.idea/indexLayout.xml b/src/dotnet/.idea/.idea.Suspectus.Gandalf/.idea/indexLayout.xml similarity index 100% rename from src/dotnet/.idea/.idea.Suspectus/.idea/indexLayout.xml rename to src/dotnet/.idea/.idea.Suspectus.Gandalf/.idea/indexLayout.xml diff --git a/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Controllers/AuthController.cs b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Controllers/AuthController.cs new file mode 100644 index 0000000..eae79d9 --- /dev/null +++ b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Controllers/AuthController.cs @@ -0,0 +1,26 @@ +using Microsoft.AspNetCore.Mvc; + +namespace Suspectus.Gandalf.Bridgekeeper.Api.Controllers; + +[ApiController] +[Route("api/[controller]")] +public class AuthController : ControllerBase +{ + [HttpGet("[action]")] + public async Task Check() + { + return Ok(true); + } + + [HttpGet("[action]")] + public async Task Login() + { + return Ok(true); + } + + [HttpGet("[action]")] + public async Task Register() + { + return Ok(true); + } +} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Mithrandir.Api/Program.cs b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Program.cs similarity index 100% rename from src/dotnet/Suspectus.Mithrandir.Api/Program.cs rename to src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Program.cs diff --git a/src/dotnet/Suspectus.Mithrandir.Api/Properties/launchSettings.json b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Properties/launchSettings.json similarity index 100% rename from src/dotnet/Suspectus.Mithrandir.Api/Properties/launchSettings.json rename to src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Properties/launchSettings.json diff --git a/src/dotnet/Suspectus.Mithrandir.Api/Suspectus.Mithrandir.Api.csproj b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Suspectus.Gandalf.Bridgekeeper.Api.csproj similarity index 84% rename from src/dotnet/Suspectus.Mithrandir.Api/Suspectus.Mithrandir.Api.csproj rename to src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Suspectus.Gandalf.Bridgekeeper.Api.csproj index d5e886e..34507d4 100644 --- a/src/dotnet/Suspectus.Mithrandir.Api/Suspectus.Mithrandir.Api.csproj +++ b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/Suspectus.Gandalf.Bridgekeeper.Api.csproj @@ -8,6 +8,7 @@ + diff --git a/src/dotnet/Suspectus.Mithrandir.Api/appsettings.Development.json b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/appsettings.Development.json similarity index 100% rename from src/dotnet/Suspectus.Mithrandir.Api/appsettings.Development.json rename to src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/appsettings.Development.json diff --git a/src/dotnet/Suspectus.Gandalf.Api/appsettings.json b/src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/appsettings.json similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Api/appsettings.json rename to src/dotnet/Suspectus.Gandalf.Bridgekeeper.Api/appsettings.json diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IMappingEntity.cs b/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IMappingEntity.cs deleted file mode 100644 index 04a8138..0000000 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IMappingEntity.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; - -public interface IMappingEntity; \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityType.cs b/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityType.cs deleted file mode 100644 index 9af45a1..0000000 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityType.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Suspectus.Gandalf.Data.Entities.Security; - -public enum AuthorityType -{ - Tenant, - App -} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenType.cs b/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenType.cs deleted file mode 100644 index 01666db..0000000 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenType.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Suspectus.Gandalf.Data.Entities.Security; - -public enum TokenType -{ - Application, - User -} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInMethod.cs b/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInMethod.cs deleted file mode 100644 index 3773f8f..0000000 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInMethod.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Suspectus.Gandalf.Data.Entities.Subject.SignIn; - -public enum SignInMethod -{ - Simple, - Google, - Steam -} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/OwnerData.cs b/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/OwnerData.cs deleted file mode 100644 index 814cf57..0000000 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/OwnerData.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Suspectus.Gandalf.Data.Entities.Base; - -namespace Suspectus.Gandalf.Data.Entities.Tenant; - -public abstract class OwnerData : VisibilityData -{ - public required long OwnerId { get; set; } -} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Abstractions/Invoker.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/Invoker.cs similarity index 97% rename from src/dotnet/Suspectus.Gandalf.Abstractions/Invoker.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/Invoker.cs index 9f233d1..accddb6 100644 --- a/src/dotnet/Suspectus.Gandalf.Abstractions/Invoker.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/Invoker.cs @@ -2,7 +2,7 @@ using System.Collections.Immutable; using System.Security.Claims; using System.Text.RegularExpressions; -namespace Suspectus.Gandalf.Abstractions; +namespace Suspectus.Gandalf.Palantir.Abstractions; public partial class Invoker { diff --git a/src/dotnet/Suspectus.Gandalf.Abstractions/InvokerContext.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/InvokerContext.cs similarity index 59% rename from src/dotnet/Suspectus.Gandalf.Abstractions/InvokerContext.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/InvokerContext.cs index b7f4e82..b74373b 100644 --- a/src/dotnet/Suspectus.Gandalf.Abstractions/InvokerContext.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/InvokerContext.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Abstractions; +namespace Suspectus.Gandalf.Palantir.Abstractions; public class InvokerContext { diff --git a/src/dotnet/Suspectus.Gandalf.Abstractions/Suspectus.Gandalf.Abstractions.csproj b/src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/Suspectus.Gandalf.Palantir.Abstractions.csproj similarity index 76% rename from src/dotnet/Suspectus.Gandalf.Abstractions/Suspectus.Gandalf.Abstractions.csproj rename to src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/Suspectus.Gandalf.Palantir.Abstractions.csproj index 25a728f..17b910f 100644 --- a/src/dotnet/Suspectus.Gandalf.Abstractions/Suspectus.Gandalf.Abstractions.csproj +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Abstractions/Suspectus.Gandalf.Palantir.Abstractions.csproj @@ -4,7 +4,6 @@ net9.0 enable enable - Suspectus.Gandalf.Abstractions diff --git a/src/dotnet/Suspectus.Gandalf.Api/Commands/AuthCodeRequestCommand.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/AuthCodeRequestCommand.cs similarity index 83% rename from src/dotnet/Suspectus.Gandalf.Api/Commands/AuthCodeRequestCommand.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/AuthCodeRequestCommand.cs index 2c6540a..95216ad 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Commands/AuthCodeRequestCommand.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/AuthCodeRequestCommand.cs @@ -1,7 +1,7 @@ using LanguageExt.Common; -using Suspectus.Gandalf.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Dto; -namespace Suspectus.Gandalf.Api.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Commands; public class AuthCodeRequestCommand : IGrCommand> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Commands/CreateAuthCodeCommand.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/CreateAuthCodeCommand.cs similarity index 73% rename from src/dotnet/Suspectus.Gandalf.Api/Commands/CreateAuthCodeCommand.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/CreateAuthCodeCommand.cs index 71645f8..3c1bba8 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Commands/CreateAuthCodeCommand.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/CreateAuthCodeCommand.cs @@ -1,7 +1,7 @@ using LanguageExt.Common; -using Suspectus.Gandalf.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Dto; -namespace Suspectus.Gandalf.Api.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Commands; public class CreateAuthCodeCommand : IGrCommand> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Commands/CreateTokensCommand.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/CreateTokensCommand.cs similarity index 60% rename from src/dotnet/Suspectus.Gandalf.Api/Commands/CreateTokensCommand.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/CreateTokensCommand.cs index e97d0db..a66dc8e 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Commands/CreateTokensCommand.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/CreateTokensCommand.cs @@ -1,7 +1,7 @@ using LanguageExt.Common; -using Suspectus.Gandalf.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Dto; -namespace Suspectus.Gandalf.Api.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Commands; public class CreateTokensCommand : IGrCommand> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Commands/HashPasswordCommand.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/HashPasswordCommand.cs similarity index 74% rename from src/dotnet/Suspectus.Gandalf.Api/Commands/HashPasswordCommand.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/HashPasswordCommand.cs index 5054df6..725d24e 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Commands/HashPasswordCommand.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/HashPasswordCommand.cs @@ -1,6 +1,6 @@ using LanguageExt.Common; -namespace Suspectus.Gandalf.Api.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Commands; public class HashPasswordCommand : IGrCommand> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Commands/IGrCommand.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/IGrCommand.cs similarity index 56% rename from src/dotnet/Suspectus.Gandalf.Api/Commands/IGrCommand.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/IGrCommand.cs index 5ec3b0c..94ee183 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Commands/IGrCommand.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/IGrCommand.cs @@ -1,5 +1,5 @@ using MediatR; -namespace Suspectus.Gandalf.Api.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Commands; public interface IGrCommand : IRequest; \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Api/Commands/RegisterCommand.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/RegisterCommand.cs similarity index 69% rename from src/dotnet/Suspectus.Gandalf.Api/Commands/RegisterCommand.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/RegisterCommand.cs index cd640d2..172cfe8 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Commands/RegisterCommand.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Commands/RegisterCommand.cs @@ -1,7 +1,7 @@ using LanguageExt.Common; -using Suspectus.Gandalf.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; -namespace Suspectus.Gandalf.Api.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Commands; public class RegisterCommand : IGrCommand> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Controllers/AuthController.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Controllers/AuthController.cs similarity index 91% rename from src/dotnet/Suspectus.Gandalf.Api/Controllers/AuthController.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Controllers/AuthController.cs index 80ab3c9..c58fb72 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Controllers/AuthController.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Controllers/AuthController.cs @@ -1,8 +1,8 @@ using MediatR; using Microsoft.AspNetCore.Mvc; -using Suspectus.Gandalf.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Commands; -namespace Suspectus.Gandalf.Api.Controllers; +namespace Suspectus.Gandalf.Palantir.Api.Controllers; [ApiController] [Route("api/[controller]")] diff --git a/src/dotnet/Suspectus.Gandalf.Api/Extensions/ResultExtentions.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Extensions/ResultExtentions.cs similarity index 94% rename from src/dotnet/Suspectus.Gandalf.Api/Extensions/ResultExtentions.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Extensions/ResultExtentions.cs index ce524d9..5316394 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Extensions/ResultExtentions.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Extensions/ResultExtentions.cs @@ -1,6 +1,6 @@ using LanguageExt.Common; -namespace Suspectus.Gandalf.Api.Extensions; +namespace Suspectus.Gandalf.Palantir.Api.Extensions; public static class ResultExtensions { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Commands/IGrCommandHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Commands/IGrCommandHandler.cs similarity index 58% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Commands/IGrCommandHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Commands/IGrCommandHandler.cs index 1c90f6f..83c9eec 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Commands/IGrCommandHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Commands/IGrCommandHandler.cs @@ -1,6 +1,6 @@ using MediatR; -using Suspectus.Gandalf.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Commands; -namespace Suspectus.Gandalf.Api.Handlers.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Commands; public interface IGrCommandHandler : IRequestHandler where TCommand : IGrCommand; \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Commands/RegisterCommandHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Commands/RegisterCommandHandler.cs similarity index 76% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Commands/RegisterCommandHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Commands/RegisterCommandHandler.cs index 100f715..4485382 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Commands/RegisterCommandHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Commands/RegisterCommandHandler.cs @@ -1,13 +1,13 @@ using LanguageExt.Common; using MediatR; -using Suspectus.Gandalf.Api.Commands; -using Suspectus.Gandalf.Api.Extensions; -using Suspectus.Gandalf.Data.Database.Repositories; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Subject.SignIn; +using Suspectus.Gandalf.Palantir.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Extensions; +using Suspectus.Gandalf.Palantir.Data.Database.Repositories; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject.SignIn; -namespace Suspectus.Gandalf.Api.Handlers.Commands; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Commands; public class RegisterCommandHandler(ISubjectRepository subjectRepository, IMediator mediator) : IGrCommandHandler> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/AuthCodeRequestCommandHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/AuthCodeRequestCommandHandler.cs similarity index 88% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/AuthCodeRequestCommandHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/AuthCodeRequestCommandHandler.cs index 3a9bb6f..2376004 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/AuthCodeRequestCommandHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/AuthCodeRequestCommandHandler.cs @@ -2,14 +2,14 @@ using LanguageExt.Common; using MediatR; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Api.Commands; -using Suspectus.Gandalf.Api.Extensions; -using Suspectus.Gandalf.Api.Handlers.Commands; -using Suspectus.Gandalf.Data.Database.Repositories; -using Suspectus.Gandalf.Data.Dto; -using Suspectus.Gandalf.Data.Entities.Subject.SignIn; +using Suspectus.Gandalf.Palantir.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Handlers.Commands; +using Suspectus.Gandalf.Palantir.Api.Extensions; +using Suspectus.Gandalf.Palantir.Data.Database.Repositories; +using Suspectus.Gandalf.Palantir.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject.SignIn; -namespace Suspectus.Gandalf.Api.Handlers.Security; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Security; public class AuthCodeRequestCommandHandler(IPasswordHasher passwordHasher, ISubjectRepository subjectRepository, IMediator mediator) : IGrCommandHandler> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/CreateAuthCodeCommandHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/CreateAuthCodeCommandHandler.cs similarity index 78% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/CreateAuthCodeCommandHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/CreateAuthCodeCommandHandler.cs index 9c13459..7349e21 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/CreateAuthCodeCommandHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/CreateAuthCodeCommandHandler.cs @@ -1,13 +1,13 @@ using AutoMapper; using LanguageExt.Common; using Microsoft.AspNetCore.Identity; -using Suspectus.Gandalf.Api.Commands; -using Suspectus.Gandalf.Api.Handlers.Commands; -using Suspectus.Gandalf.Data.Database.Repositories; -using Suspectus.Gandalf.Data.Dto; -using Suspectus.Gandalf.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Handlers.Commands; +using Suspectus.Gandalf.Palantir.Data.Database.Repositories; +using Suspectus.Gandalf.Palantir.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; -namespace Suspectus.Gandalf.Api.Handlers.Security; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Security; public class CreateAuthCodeCommandHandler(IPasswordHasher passwordHasher, TimeProvider timeProvider, IAuthCodeRepository authCodeRepository, IMapper mapper) : IGrCommandHandler> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/CreateTokensCommandHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/CreateTokensCommandHandler.cs similarity index 85% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/CreateTokensCommandHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/CreateTokensCommandHandler.cs index 7721686..c8e2eed 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/CreateTokensCommandHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/CreateTokensCommandHandler.cs @@ -3,15 +3,15 @@ using JWT.Algorithms; using JWT.Builder; using JWT.Serializers; using LanguageExt.Common; -using Suspectus.Gandalf.Api.Commands; -using Suspectus.Gandalf.Api.Extensions; -using Suspectus.Gandalf.Api.Handlers.Commands; -using Suspectus.Gandalf.Data.Database.Repositories; -using Suspectus.Gandalf.Data.Dto; -using Suspectus.Gandalf.Data.Entities.Security; -using Suspectus.Gandalf.Security.Scheme; +using Suspectus.Gandalf.Palantir.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Handlers.Commands; +using Suspectus.Gandalf.Palantir.Api.Extensions; +using Suspectus.Gandalf.Palantir.Data.Database.Repositories; +using Suspectus.Gandalf.Palantir.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Security.Scheme; -namespace Suspectus.Gandalf.Api.Handlers.Security; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Security; public class CreateTokensCommandHandler(TimeProvider timeProvider, IConfiguration configuration, IHashids hashids, ITokenMetadataRepository tokenMetadataRepository) : IGrCommandHandler> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/GetTokensCommandHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/GetTokensCommandHandler.cs similarity index 86% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/GetTokensCommandHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/GetTokensCommandHandler.cs index aaf2edd..dc522d1 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/GetTokensCommandHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/GetTokensCommandHandler.cs @@ -3,13 +3,13 @@ using System.Text; using LanguageExt.Common; using MediatR; using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Api.Commands; -using Suspectus.Gandalf.Api.Extensions; -using Suspectus.Gandalf.Api.Handlers.Commands; -using Suspectus.Gandalf.Data.Database.Repositories; -using Suspectus.Gandalf.Data.Dto; +using Suspectus.Gandalf.Palantir.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Handlers.Commands; +using Suspectus.Gandalf.Palantir.Api.Extensions; +using Suspectus.Gandalf.Palantir.Data.Database.Repositories; +using Suspectus.Gandalf.Palantir.Data.Dto; -namespace Suspectus.Gandalf.Api.Handlers.Security; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Security; public class GetTokensCommandHandler(IAuthCodeRepository authCodeRepository, TimeProvider timeProvider, IMediator mediator) : IGrCommandHandler> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/PasswordHashingHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/PasswordHashingHandler.cs similarity index 77% rename from src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/PasswordHashingHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/PasswordHashingHandler.cs index cedab40..12a2fd8 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Handlers/Security/PasswordHashingHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Handlers/Security/PasswordHashingHandler.cs @@ -1,10 +1,10 @@ using LanguageExt.Common; using Microsoft.AspNetCore.Identity; -using Suspectus.Gandalf.Api.Commands; -using Suspectus.Gandalf.Api.Extensions; -using Suspectus.Gandalf.Api.Handlers.Commands; +using Suspectus.Gandalf.Palantir.Api.Commands; +using Suspectus.Gandalf.Palantir.Api.Handlers.Commands; +using Suspectus.Gandalf.Palantir.Api.Extensions; -namespace Suspectus.Gandalf.Api.Handlers.Security; +namespace Suspectus.Gandalf.Palantir.Api.Handlers.Security; public class PasswordHashingHandler(IPasswordHasher passwordHasher) : IGrCommandHandler> { diff --git a/src/dotnet/Suspectus.Gandalf.Api/Program.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Program.cs similarity index 89% rename from src/dotnet/Suspectus.Gandalf.Api/Program.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Program.cs index ec7f082..92cf8a3 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Program.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Program.cs @@ -3,10 +3,10 @@ using System.Text.Json.Serialization; using HashidsNet; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Abstractions; -using Suspectus.Gandalf.Security.Scheme; -using Suspectus.Gandalf.Data.Database; -using Suspectus.Gandalf.Data.Database.Repositories; +using Suspectus.Gandalf.Palantir.Abstractions; +using Suspectus.Gandalf.Palantir.Security.Scheme; +using Suspectus.Gandalf.Palantir.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database.Repositories; var builder = WebApplication.CreateBuilder(args); @@ -16,7 +16,7 @@ builder.Services.AddEndpointsApiExplorer(); builder.Services.AddDbContext(cfg => cfg .UseNpgsql( builder.Configuration.GetConnectionString("DefaultConnection"), - x => x.MigrationsAssembly("Suspectus.Gandalf.Data") + x => x.MigrationsAssembly("Suspectus.Gandalf.Palantir.Data") ) ); diff --git a/src/dotnet/Suspectus.Gandalf.Api/Properties/launchSettings.json b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Properties/launchSettings.json similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Api/Properties/launchSettings.json rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Properties/launchSettings.json diff --git a/src/dotnet/Suspectus.Gandalf.Api/Suspectus.Gandalf.Api.csproj b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Suspectus.Gandalf.Palantir.Api.csproj similarity index 81% rename from src/dotnet/Suspectus.Gandalf.Api/Suspectus.Gandalf.Api.csproj rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/Suspectus.Gandalf.Palantir.Api.csproj index 3f04e43..bbad534 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/Suspectus.Gandalf.Api.csproj +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/Suspectus.Gandalf.Palantir.Api.csproj @@ -4,7 +4,6 @@ net9.0 enable enable - Suspectus.Gandalf.Api 12 @@ -23,8 +22,8 @@ - - + + diff --git a/src/dotnet/Suspectus.Gandalf.Api/TestController.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Api/TestController.cs similarity index 89% rename from src/dotnet/Suspectus.Gandalf.Api/TestController.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/TestController.cs index 8311394..870102b 100644 --- a/src/dotnet/Suspectus.Gandalf.Api/TestController.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Api/TestController.cs @@ -2,14 +2,14 @@ using HashidsNet; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Abstractions; -using Suspectus.Gandalf.Data.Database; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Security; -using Suspectus.Gandalf.Data.Entities.Tenant; -using Suspectus.Gandalf.Security; +using Suspectus.Gandalf.Palantir.Abstractions; +using Suspectus.Gandalf.Palantir.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Security; -namespace Suspectus.Gandalf.Api; +namespace Suspectus.Gandalf.Palantir.Api; [ApiController] [Route("api/[controller]")] diff --git a/src/dotnet/Suspectus.Gandalf.Api/appsettings.Development.json b/src/dotnet/Suspectus.Gandalf.Palantir.Api/appsettings.Development.json similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Api/appsettings.Development.json rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/appsettings.Development.json diff --git a/src/dotnet/Suspectus.Mithrandir.Api/appsettings.json b/src/dotnet/Suspectus.Gandalf.Palantir.Api/appsettings.json similarity index 100% rename from src/dotnet/Suspectus.Mithrandir.Api/appsettings.json rename to src/dotnet/Suspectus.Gandalf.Palantir.Api/appsettings.json diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/ApplicationContext.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/ApplicationContext.cs similarity index 97% rename from src/dotnet/Suspectus.Gandalf.Data/Database/ApplicationContext.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/ApplicationContext.cs index bf9c8bc..9e8fcf7 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/ApplicationContext.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/ApplicationContext.cs @@ -1,9 +1,9 @@ using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Abstractions; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Abstractions; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Database; +namespace Suspectus.Gandalf.Palantir.Data.Database; public sealed class ApplicationContext(DbContextOptions options, InvokerContext invokerContext) : CoreContext(options) { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/CoreContext.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/CoreContext.cs similarity index 94% rename from src/dotnet/Suspectus.Gandalf.Data/Database/CoreContext.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/CoreContext.cs index d49742b..5489d9f 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/CoreContext.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/CoreContext.cs @@ -1,12 +1,12 @@ using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Data.Entities.App; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Security; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Subject.SignIn; -using Suspectus.Gandalf.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.App; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject.SignIn; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; -namespace Suspectus.Gandalf.Data.Database; +namespace Suspectus.Gandalf.Palantir.Data.Database; public abstract class CoreContext(DbContextOptions options) : DbContext(options) where T : DbContext { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/GrDbConnectionInterceptor.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/GrDbConnectionInterceptor.cs similarity index 89% rename from src/dotnet/Suspectus.Gandalf.Data/Database/GrDbConnectionInterceptor.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/GrDbConnectionInterceptor.cs index 9e7528b..f182614 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/GrDbConnectionInterceptor.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/GrDbConnectionInterceptor.cs @@ -1,9 +1,9 @@ using System.Data; using System.Data.Common; using Microsoft.EntityFrameworkCore.Diagnostics; -using Suspectus.Gandalf.Abstractions; +using Suspectus.Gandalf.Palantir.Abstractions; -namespace Suspectus.Gandalf.Data.Database; +namespace Suspectus.Gandalf.Palantir.Data.Database; public class GrDbConnectionInterceptor(InvokerContext invokerContext) : IDbConnectionInterceptor { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/AuthCodeRepository.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/AuthCodeRepository.cs similarity index 61% rename from src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/AuthCodeRepository.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/AuthCodeRepository.cs index 272cc6e..c3b3bd8 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/AuthCodeRepository.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/AuthCodeRepository.cs @@ -1,6 +1,6 @@ -using Suspectus.Gandalf.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; -namespace Suspectus.Gandalf.Data.Database.Repositories; +namespace Suspectus.Gandalf.Palantir.Data.Database.Repositories; public class AuthCodeRepository(ApplicationContext context) : GrRepository(context), IAuthCodeRepository; diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/GrRepository.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/GrRepository.cs similarity index 96% rename from src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/GrRepository.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/GrRepository.cs index 80c4fa9..5025891 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/GrRepository.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/GrRepository.cs @@ -1,8 +1,8 @@ using LanguageExt.Common; using Microsoft.EntityFrameworkCore; -using Suspectus.Gandalf.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; -namespace Suspectus.Gandalf.Data.Database.Repositories; +namespace Suspectus.Gandalf.Palantir.Data.Database.Repositories; public abstract class GrRepository(ApplicationContext context) : IGrRepository where TEntity : class, IEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/IGrRepository.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/IGrRepository.cs similarity index 85% rename from src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/IGrRepository.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/IGrRepository.cs index 2463c8f..d41fa8d 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/IGrRepository.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/IGrRepository.cs @@ -1,7 +1,7 @@ using LanguageExt.Common; -using Suspectus.Gandalf.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; -namespace Suspectus.Gandalf.Data.Database.Repositories; +namespace Suspectus.Gandalf.Palantir.Data.Database.Repositories; public interface IGrRepository where TEntity : class, IEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/SubjectRepository.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/SubjectRepository.cs similarity index 60% rename from src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/SubjectRepository.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/SubjectRepository.cs index 383c2d9..3ab8773 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/SubjectRepository.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/SubjectRepository.cs @@ -1,6 +1,6 @@ -using Suspectus.Gandalf.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; -namespace Suspectus.Gandalf.Data.Database.Repositories; +namespace Suspectus.Gandalf.Palantir.Data.Database.Repositories; public class SubjectRepository(ApplicationContext context) : GrRepository(context), ISubjectRepository; diff --git a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/TokenMetadataRepository.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/TokenMetadataRepository.cs similarity index 64% rename from src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/TokenMetadataRepository.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/TokenMetadataRepository.cs index 7d47f94..f1948fc 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Database/Repositories/TokenMetadataRepository.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Database/Repositories/TokenMetadataRepository.cs @@ -1,7 +1,6 @@ +using Suspectus.Gandalf.Palantir.Data.Entities.Security; -using Suspectus.Gandalf.Data.Entities.Security; - -namespace Suspectus.Gandalf.Data.Database.Repositories; +namespace Suspectus.Gandalf.Palantir.Data.Database.Repositories; public class TokenMetadataRepository(ApplicationContext context) : GrRepository(context), ITokenMetadataRepository; diff --git a/src/dotnet/Suspectus.Gandalf.Data/Dto/AuthCodeDto.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Dto/AuthCodeDto.cs similarity index 79% rename from src/dotnet/Suspectus.Gandalf.Data/Dto/AuthCodeDto.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Dto/AuthCodeDto.cs index 75d3ec4..61fef26 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Dto/AuthCodeDto.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Dto/AuthCodeDto.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Dto; +namespace Suspectus.Gandalf.Palantir.Data.Dto; public class AuthCodeDto { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Dto/TokenDto.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Dto/TokenDto.cs similarity index 73% rename from src/dotnet/Suspectus.Gandalf.Data/Dto/TokenDto.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Dto/TokenDto.cs index 57a791d..6ad861e 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Dto/TokenDto.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Dto/TokenDto.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Dto; +namespace Suspectus.Gandalf.Palantir.Data.Dto; public class TokenDto { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/App/AppRelationEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/App/AppRelationEntity.cs similarity index 69% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/App/AppRelationEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/App/AppRelationEntity.cs index 856279c..9524b3d 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/App/AppRelationEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/App/AppRelationEntity.cs @@ -1,9 +1,9 @@ -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Tenant; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Entities.App; +namespace Suspectus.Gandalf.Palantir.Data.Entities.App; public class AppRelationEntity : AppRelationData, IVersionableEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/App/AppSubjectRelationEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/App/AppSubjectRelationEntity.cs similarity index 70% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/App/AppSubjectRelationEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/App/AppSubjectRelationEntity.cs index 431209b..412ba1e 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/App/AppSubjectRelationEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/App/AppSubjectRelationEntity.cs @@ -1,10 +1,10 @@ -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Security; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Tenant; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Entities.App; +namespace Suspectus.Gandalf.Palantir.Data.Entities.App; public class AppSubjectRelationEntity : AppSubjectRelationData, IMappingEntity, IVersionableEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/EntityVisibility.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/EntityVisibility.cs similarity index 59% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Base/EntityVisibility.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/EntityVisibility.cs index 2779a54..a39e7c2 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/EntityVisibility.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/EntityVisibility.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; public enum EntityVisibility { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IEntity.cs similarity index 50% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IEntity.cs index 5b1aa21..85bda15 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IEntity.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; public interface IEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IMappingEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IMappingEntity.cs new file mode 100644 index 0000000..c1ff14a --- /dev/null +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IMappingEntity.cs @@ -0,0 +1,3 @@ +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; + +public interface IMappingEntity; \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IdData.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IdData.cs similarity index 57% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IdData.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IdData.cs index f3a6c6b..1b882b6 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/IdData.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/IdData.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; public abstract class IdData : IEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/SubjectData.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/SubjectData.cs similarity index 62% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Base/SubjectData.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/SubjectData.cs index d96a1bc..0e87774 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/SubjectData.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/SubjectData.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; public abstract class SubjectData : VisibilityData { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/TenantRelationData.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/TenantRelationData.cs similarity index 65% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Base/TenantRelationData.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/TenantRelationData.cs index a8be6c4..1971743 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/TenantRelationData.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/TenantRelationData.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; public abstract class TenantRelationData : VisibilityData { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/VisibilityData.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/VisibilityData.cs similarity index 66% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Base/VisibilityData.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/VisibilityData.cs index 22e7778..753b806 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Base/VisibilityData.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Base/VisibilityData.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Base; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Base; public abstract class VisibilityData : IdData { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/ContentKeyAttribute.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/ContentKeyAttribute.cs similarity index 64% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/ContentKeyAttribute.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/ContentKeyAttribute.cs index c2afb89..c2eba90 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/ContentKeyAttribute.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/ContentKeyAttribute.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities; +namespace Suspectus.Gandalf.Palantir.Data.Entities; [AttributeUsage(AttributeTargets.Property)] public class ContentKeyAttribute : Attribute diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs similarity index 74% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs index cb57315..e48357a 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AppUserRelationInternalAuthorityRelationEntity.cs @@ -1,10 +1,10 @@ -using Suspectus.Gandalf.Data.Entities.App; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Tenant; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Data.Entities.App; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Entities.Security; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; public class AppSubjectRelationInternalAuthorityRelationEntity : AppSubjectRelationInternalAuthorityRelationData, IMappingEntity, IVersionableEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthCodeEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthCodeEntity.cs similarity index 75% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthCodeEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthCodeEntity.cs index 93f2aec..a9042f9 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthCodeEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthCodeEntity.cs @@ -1,6 +1,6 @@ -using Suspectus.Gandalf.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; -namespace Suspectus.Gandalf.Data.Entities.Security; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; public class AuthCodeEntity : IdData { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityEntity.cs similarity index 71% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityEntity.cs index 6c39d39..1a12be3 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/AuthorityEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityEntity.cs @@ -1,8 +1,8 @@ -using Suspectus.Gandalf.Data.Entities.App; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.App; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; -namespace Suspectus.Gandalf.Data.Entities.Security; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; public class AuthorityEntity : IdData { diff --git a/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityType.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityType.cs new file mode 100644 index 0000000..2885813 --- /dev/null +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/AuthorityType.cs @@ -0,0 +1,7 @@ +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; + +public enum AuthorityType +{ + Tenant, + App +} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs similarity index 78% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs index 8991934..2da41af 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TenantSubjectRelationInternalAuthorityRelationEntity.cs @@ -1,9 +1,9 @@ -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Tenant; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Entities.Security; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; public class TenantSubjectRelationInternalAuthorityRelationEntity : TenantSubjectRelationInternalAuthorityRelationData, IMappingEntity, IVersionableEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenMetaDataEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenMetaDataEntity.cs similarity index 69% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenMetaDataEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenMetaDataEntity.cs index 041a0f5..1d86e0b 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Security/TokenMetaDataEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenMetaDataEntity.cs @@ -1,6 +1,6 @@ -using Suspectus.Gandalf.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; -namespace Suspectus.Gandalf.Data.Entities.Security; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; public class TokenMetadataEntity : IdData { diff --git a/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenType.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenType.cs new file mode 100644 index 0000000..b482920 --- /dev/null +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Security/TokenType.cs @@ -0,0 +1,7 @@ +namespace Suspectus.Gandalf.Palantir.Data.Entities.Security; + +public enum TokenType +{ + Application, + User +} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInEntity.cs similarity index 70% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInEntity.cs index 8902870..97618c5 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SignIn/SignInEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInEntity.cs @@ -1,6 +1,6 @@ -using Suspectus.Gandalf.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; -namespace Suspectus.Gandalf.Data.Entities.Subject.SignIn; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Subject.SignIn; public class SignInEntity : SubjectData { diff --git a/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInMethod.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInMethod.cs new file mode 100644 index 0000000..3ba9f48 --- /dev/null +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SignIn/SignInMethod.cs @@ -0,0 +1,8 @@ +namespace Suspectus.Gandalf.Palantir.Data.Entities.Subject.SignIn; + +public enum SignInMethod +{ + Simple, + Google, + Steam +} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SubjectEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SubjectEntity.cs similarity index 50% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SubjectEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SubjectEntity.cs index a35afa7..8f60f45 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Subject/SubjectEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Subject/SubjectEntity.cs @@ -1,9 +1,9 @@ -using Suspectus.Gandalf.Data.Entities.App; -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Subject.SignIn; -using Suspectus.Gandalf.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.App; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject.SignIn; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; -namespace Suspectus.Gandalf.Data.Entities.Subject; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Subject; public class SubjectEntity : VisibilityData { diff --git a/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/OwnerData.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/OwnerData.cs new file mode 100644 index 0000000..7ce9070 --- /dev/null +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/OwnerData.cs @@ -0,0 +1,8 @@ +using Suspectus.Gandalf.Palantir.Data.Entities.Base; + +namespace Suspectus.Gandalf.Palantir.Data.Entities.Tenant; + +public abstract class OwnerData : VisibilityData +{ + public required long OwnerId { get; set; } +} \ No newline at end of file diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/TenantEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/TenantEntity.cs similarity index 75% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/TenantEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/TenantEntity.cs index ce0a845..d19a214 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/TenantEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/TenantEntity.cs @@ -1,8 +1,8 @@ -using Suspectus.Gandalf.Data.Entities.App; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Data.Entities.App; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Entities.Tenant; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Tenant; public class TenantEntity : TenantData, IVersionableEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/TenantSubjectRelationEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/TenantSubjectRelationEntity.cs similarity index 74% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/TenantSubjectRelationEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/TenantSubjectRelationEntity.cs index c7838f1..8bd4bff 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Tenant/TenantSubjectRelationEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Tenant/TenantSubjectRelationEntity.cs @@ -1,9 +1,9 @@ -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Security; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Version; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Version; -namespace Suspectus.Gandalf.Data.Entities.Tenant; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Tenant; public class TenantSubjectRelationEntity : TenantSubjectRelationData, IMappingEntity, IVersionableEntity { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Version/IVersionEntity.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Version/IVersionEntity.cs similarity index 65% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Version/IVersionEntity.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Version/IVersionEntity.cs index de55c62..71a8f97 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Version/IVersionEntity.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Version/IVersionEntity.cs @@ -1,8 +1,8 @@ -using Suspectus.Gandalf.Data.Entities.Base; -using Suspectus.Gandalf.Data.Entities.Subject; -using Suspectus.Gandalf.Data.Entities.Tenant; +using Suspectus.Gandalf.Palantir.Data.Entities.Base; +using Suspectus.Gandalf.Palantir.Data.Entities.Subject; +using Suspectus.Gandalf.Palantir.Data.Entities.Tenant; -namespace Suspectus.Gandalf.Data.Entities.Version; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Version; public interface IVersionableBase : IEntity, IVersionableEntity; diff --git a/src/dotnet/Suspectus.Gandalf.Data/Entities/Version/VersionAction.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Version/VersionAction.cs similarity index 57% rename from src/dotnet/Suspectus.Gandalf.Data/Entities/Version/VersionAction.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Version/VersionAction.cs index 80a56b6..eba79b1 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Entities/Version/VersionAction.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Entities/Version/VersionAction.cs @@ -1,4 +1,4 @@ -namespace Suspectus.Gandalf.Data.Entities.Version; +namespace Suspectus.Gandalf.Palantir.Data.Entities.Version; public enum VersionAction { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Extensions/StringExtensions.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Extensions/StringExtensions.cs similarity index 93% rename from src/dotnet/Suspectus.Gandalf.Data/Extensions/StringExtensions.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Extensions/StringExtensions.cs index f0bbe81..dc2c626 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Extensions/StringExtensions.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Extensions/StringExtensions.cs @@ -1,6 +1,6 @@ using System.Text; -namespace Suspectus.Gandalf.Data.Extensions; +namespace Suspectus.Gandalf.Palantir.Data.Extensions; public static class StringExtensions { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Mapper/AuthCodeDtoMappingProfile.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Mapper/AuthCodeDtoMappingProfile.cs similarity index 53% rename from src/dotnet/Suspectus.Gandalf.Data/Mapper/AuthCodeDtoMappingProfile.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Mapper/AuthCodeDtoMappingProfile.cs index 3eba13b..5b18739 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Mapper/AuthCodeDtoMappingProfile.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Mapper/AuthCodeDtoMappingProfile.cs @@ -1,8 +1,8 @@ using AutoMapper; -using Suspectus.Gandalf.Data.Dto; -using Suspectus.Gandalf.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Data.Dto; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; -namespace Suspectus.Gandalf.Data.Mapper; +namespace Suspectus.Gandalf.Palantir.Data.Mapper; public class AuthCodeDtoMappingProfile : Profile { diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240903154112_sus.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240903154112_sus.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240903154112_sus.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240903154112_sus.Designer.cs index e9b698b..3de120c 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240903154112_sus.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240903154112_sus.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240903154112_sus.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240903154112_sus.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240903154112_sus.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240903154112_sus.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914003536_addTokens.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914003536_addTokens.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914003536_addTokens.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914003536_addTokens.Designer.cs index e0c548e..75c960c 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914003536_addTokens.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914003536_addTokens.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914003536_addTokens.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914003536_addTokens.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914003536_addTokens.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914003536_addTokens.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914005530_affwaf.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914005530_affwaf.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914005530_affwaf.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914005530_affwaf.Designer.cs index b5d1aad..878ca16 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914005530_affwaf.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914005530_affwaf.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914005530_affwaf.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914005530_affwaf.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914005530_affwaf.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914005530_affwaf.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914012943_fawfghh.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914012943_fawfghh.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914012943_fawfghh.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914012943_fawfghh.Designer.cs index 674ff8b..78d0160 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914012943_fawfghh.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914012943_fawfghh.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914012943_fawfghh.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914012943_fawfghh.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914012943_fawfghh.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914012943_fawfghh.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914014850_gjjjjjj.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914014850_gjjjjjj.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914014850_gjjjjjj.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914014850_gjjjjjj.Designer.cs index e797867..4125b5a 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914014850_gjjjjjj.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914014850_gjjjjjj.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914014850_gjjjjjj.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914014850_gjjjjjj.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914014850_gjjjjjj.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914014850_gjjjjjj.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914224344_jsoikgsoieg.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914224344_jsoikgsoieg.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914224344_jsoikgsoieg.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914224344_jsoikgsoieg.Designer.cs index fe1e37d..fc2d00b 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914224344_jsoikgsoieg.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914224344_jsoikgsoieg.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914224344_jsoikgsoieg.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914224344_jsoikgsoieg.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240914224344_jsoikgsoieg.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240914224344_jsoikgsoieg.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919005908_afwawfawf.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919005908_afwawfawf.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919005908_afwawfawf.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919005908_afwawfawf.Designer.cs index 2f92664..f7e3011 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919005908_afwawfawf.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919005908_afwawfawf.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919005908_afwawfawf.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919005908_afwawfawf.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919005908_afwawfawf.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919005908_afwawfawf.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010339_ffffff.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010339_ffffff.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010339_ffffff.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010339_ffffff.Designer.cs index aaa9387..09430ff 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010339_ffffff.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010339_ffffff.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010339_ffffff.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010339_ffffff.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010339_ffffff.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010339_ffffff.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010748_jmäpromh.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010748_jmäpromh.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010748_jmäpromh.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010748_jmäpromh.Designer.cs index fd8c6b4..80319d4 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010748_jmäpromh.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010748_jmäpromh.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010748_jmäpromh.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010748_jmäpromh.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919010748_jmäpromh.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919010748_jmäpromh.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919012025_fghdhhzttr.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919012025_fghdhhzttr.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919012025_fghdhhzttr.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919012025_fghdhhzttr.Designer.cs index 7d31685..8d9e1aa 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919012025_fghdhhzttr.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919012025_fghdhhzttr.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919012025_fghdhhzttr.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919012025_fghdhhzttr.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240919012025_fghdhhzttr.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240919012025_fghdhhzttr.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs index 09509f0..4d10b12 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240921214234_klöhmpdmpmgr.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/20240921214234_klöhmpdmpmgr.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240921214234_klöhmpdmpmgr.cs similarity index 100% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/20240921214234_klöhmpdmpmgr.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/20240921214234_klöhmpdmpmgr.cs diff --git a/src/dotnet/Suspectus.Gandalf.Data/Migrations/ApplicationContextModelSnapshot.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/ApplicationContextModelSnapshot.cs similarity index 99% rename from src/dotnet/Suspectus.Gandalf.Data/Migrations/ApplicationContextModelSnapshot.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/ApplicationContextModelSnapshot.cs index 34e15ca..097bd4d 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Migrations/ApplicationContextModelSnapshot.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Migrations/ApplicationContextModelSnapshot.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Data.Database; #nullable disable diff --git a/src/dotnet/Suspectus.Gandalf.Data/Suspectus.Gandalf.Data.csproj b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Suspectus.Gandalf.Palantir.Data.csproj similarity index 82% rename from src/dotnet/Suspectus.Gandalf.Data/Suspectus.Gandalf.Data.csproj rename to src/dotnet/Suspectus.Gandalf.Palantir.Data/Suspectus.Gandalf.Palantir.Data.csproj index 8f11913..f5f4a69 100644 --- a/src/dotnet/Suspectus.Gandalf.Data/Suspectus.Gandalf.Data.csproj +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Data/Suspectus.Gandalf.Palantir.Data.csproj @@ -4,7 +4,6 @@ net9.0 enable enable - Suspectus.Gandalf.Data 12 @@ -22,7 +21,7 @@ - + diff --git a/src/dotnet/Suspectus.Gandalf.Security/GrAuthorizeAttribute.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Security/GrAuthorizeAttribute.cs similarity index 94% rename from src/dotnet/Suspectus.Gandalf.Security/GrAuthorizeAttribute.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Security/GrAuthorizeAttribute.cs index 89ec0ae..a4ab783 100644 --- a/src/dotnet/Suspectus.Gandalf.Security/GrAuthorizeAttribute.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Security/GrAuthorizeAttribute.cs @@ -2,10 +2,10 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Suspectus.Gandalf.Abstractions; -using Suspectus.Gandalf.Data.Entities.Security; +using Suspectus.Gandalf.Palantir.Abstractions; +using Suspectus.Gandalf.Palantir.Data.Entities.Security; -namespace Suspectus.Gandalf.Security; +namespace Suspectus.Gandalf.Palantir.Security; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] public class GrAuthorizeAttribute : Attribute, IAuthorizationFilter diff --git a/src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthExtensions.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthExtensions.cs similarity index 90% rename from src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthExtensions.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthExtensions.cs index 354ee52..e3a174f 100644 --- a/src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthExtensions.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace Suspectus.Gandalf.Security.Scheme; +namespace Suspectus.Gandalf.Palantir.Security.Scheme; public static class GandalfRebornJwtTokenAuthExtensions { diff --git a/src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs similarity index 97% rename from src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs index cf255dd..e17cd45 100644 --- a/src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthSchemeHandler.cs @@ -15,10 +15,10 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Suspectus.Gandalf.Abstractions; -using Suspectus.Gandalf.Data.Database; +using Suspectus.Gandalf.Palantir.Abstractions; +using Suspectus.Gandalf.Palantir.Data.Database; -namespace Suspectus.Gandalf.Security.Scheme; +namespace Suspectus.Gandalf.Palantir.Security.Scheme; public class GandalfRebornJwtBody { diff --git a/src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs similarity index 81% rename from src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs rename to src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs index cb33070..97942d1 100644 --- a/src/dotnet/Suspectus.Gandalf.Security/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Scheme/GandalfRebornJwtTokenAuthSchemeOptions.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Authentication; -namespace Suspectus.Gandalf.Security.Scheme; +namespace Suspectus.Gandalf.Palantir.Security.Scheme; public class GandalfRebornJwtTokenAuthSchemeOptions : AuthenticationSchemeOptions { diff --git a/src/dotnet/Suspectus.Gandalf.Security/Suspectus.Gandalf.Security.csproj b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Suspectus.Gandalf.Palantir.Security.csproj similarity index 64% rename from src/dotnet/Suspectus.Gandalf.Security/Suspectus.Gandalf.Security.csproj rename to src/dotnet/Suspectus.Gandalf.Palantir.Security/Suspectus.Gandalf.Palantir.Security.csproj index f7d2915..4e4d92c 100644 --- a/src/dotnet/Suspectus.Gandalf.Security/Suspectus.Gandalf.Security.csproj +++ b/src/dotnet/Suspectus.Gandalf.Palantir.Security/Suspectus.Gandalf.Palantir.Security.csproj @@ -4,7 +4,6 @@ net9.0 enable enable - Suspectus.Gandalf.Security @@ -14,8 +13,8 @@ - - + + diff --git a/src/dotnet/Suspectus.sln b/src/dotnet/Suspectus.Gandalf.sln similarity index 73% rename from src/dotnet/Suspectus.sln rename to src/dotnet/Suspectus.Gandalf.sln index 96c020c..0bdda57 100644 --- a/src/dotnet/Suspectus.sln +++ b/src/dotnet/Suspectus.Gandalf.sln @@ -1,18 +1,20 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Api", "Suspectus.Gandalf.Api\Suspectus.Gandalf.Api.csproj", "{067494CB-FE63-42F0-A154-586E50442969}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Palantir.Api", "Suspectus.Gandalf.Palantir.Api\Suspectus.Gandalf.Palantir.Api.csproj", "{067494CB-FE63-42F0-A154-586E50442969}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Data", "Suspectus.Gandalf.Data\Suspectus.Gandalf.Data.csproj", "{B4AF6985-3268-4C2E-9C50-D92DA7D3711D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Palantir.Data", "Suspectus.Gandalf.Palantir.Data\Suspectus.Gandalf.Palantir.Data.csproj", "{B4AF6985-3268-4C2E-9C50-D92DA7D3711D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Security", "Suspectus.Gandalf.Security\Suspectus.Gandalf.Security.csproj", "{C8C3047B-ED0B-4516-A282-8B07E3EEB430}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Palantir.Security", "Suspectus.Gandalf.Palantir.Security\Suspectus.Gandalf.Palantir.Security.csproj", "{C8C3047B-ED0B-4516-A282-8B07E3EEB430}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Abstractions", "Suspectus.Gandalf.Abstractions\Suspectus.Gandalf.Abstractions.csproj", "{44C283FD-2E01-496C-9E8F-4E43C26C9733}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Palantir.Abstractions", "Suspectus.Gandalf.Palantir.Abstractions\Suspectus.Gandalf.Palantir.Abstractions.csproj", "{44C283FD-2E01-496C-9E8F-4E43C26C9733}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Mithrandir", "Mithrandir", "{D54D8A40-A5C3-4273-B4D7-F2B83056161B}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Gandalf", "Gandalf", "{A82EA24B-1379-41B2-A363-CDCBF9F18833}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Palantir", "Palantir", "{A82EA24B-1379-41B2-A363-CDCBF9F18833}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Mithrandir.Api", "Suspectus.Mithrandir.Api\Suspectus.Mithrandir.Api.csproj", "{264B8A9E-7A70-4DE3-906B-7E0722D09205}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Suspectus.Gandalf.Bridgekeeper.Api", "Suspectus.Gandalf.Bridgekeeper.Api\Suspectus.Gandalf.Bridgekeeper.Api.csproj", "{264B8A9E-7A70-4DE3-906B-7E0722D09205}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{3E672AE3-D2E4-49C0-AB18-65E799E5277A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution