Skip to content

Commit

Permalink
Version 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPSmith committed Aug 15, 2023
1 parent a889e29 commit 3f5ae35
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
16 changes: 9 additions & 7 deletions AuthPermissions.AspNetCore/CreateNuGetRelease.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>AuthPermissions.AspNetCore</id>
<version>5.0.1</version>
<version>6.0.0</version>
<authors>Jon P Smith</authors>
<product>AuthPermissions.AspNetCore</product>
<copyright>Copyright (c) 2021 Jon P Smith</copyright>
<description>Provides extra authorization and multi-tenant features to a ASP.NET Core application.</description>
<releaseNotes>
- Minor improvements AccessDatabaseInformationJsonFile
- Minor improvements to SignInAndCreateTenant (better handling of errors)
- Minor improvements to IndividualUserAddUserManager (check password)
</releaseNotes>
- Significant changes to code to support sharding multi-tenant applications
- BREAKING CHANGES: Replaced the old services for handling sharding entries due to a limitation
- Improvement: The ability to define a sharding-only mode - see Configuring sharding &gt; sharding-only mode
- Fix: The Sign up for a new tenant, with versioning now works with sharding-only tenants.
- Improvement: New service to simplify the create / delete of sharding-only tenants.
</releaseNotes>
<license type="expression">MIT</license>
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>
<icon>images\AuthPermissionsAspNetCoreNuGetIcon.png</icon>
Expand All @@ -33,6 +35,7 @@
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="6.0.11" />
<dependency id="Microsoft.AspNetCore.Authorization" version="6.0.11" />
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3.1" />
Expand All @@ -41,7 +44,6 @@
<dependency id="EfCore.TestSupport" version="5.3.0" />
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
<dependency id="Microsoft.Graph" version="4.37.0" />
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
</group>
<group targetFramework="net7.0">
<dependency id="GenericServices.StatusGeneric" version="1.2.0" />
Expand All @@ -59,6 +61,7 @@
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="7.0.0" />
<dependency id="Microsoft.AspNetCore.Authorization" version="7.0.0" />
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3.1" />
Expand All @@ -67,7 +70,6 @@
<dependency id="EfCore.TestSupport" version="5.3.0" />
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
<dependency id="Microsoft.Graph" version="4.37.0" />
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
</group>
</dependencies>
</metadata>
Expand Down
8 changes: 6 additions & 2 deletions AuthPermissions.AspNetCore/MultiProjPack.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
<!-- See documentation for all the possible values -->
<metadata>
<id>AuthPermissions.AspNetCore</id>
<version>5.1.0-preview002</version>
<version>6.0.0</version>
<authors>Jon P Smith</authors>
<product>AuthPermissions.AspNetCore</product>
<copyright>Copyright (c) 2021 Jon P Smith</copyright>
<description>Provides extra authorization and multi-tenant features to a ASP.NET Core application.</description>
<releaseNotes>
- Minor improvement to set the default sharding data.
- Significant changes to code to support sharding multi-tenant applications
- BREAKING CHANGES: Replaced the old services for handling sharding entries due to a limitation
- Improvement: The ability to define a sharding-only mode - see Configuring sharding > sharding-only mode
- Fix: The Sign up for a new tenant, with versioning now works with sharding-only tenants.
- Improvement: New service to simplify the create / delete of sharding-only tenants.
</releaseNotes>
<license type="expression">MIT</license>
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>
Expand Down
4 changes: 2 additions & 2 deletions ConsoleApp.AuthP6Upgrade/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void Main(string[] args)
}

var jsonString = File.ReadAllText(filePathToJsonFilePath);
Console.WriteLine(jsonString);
//Console.WriteLine(jsonString);
var shardingData = JsonSerializer.Deserialize<JsonFileFormat>(jsonString)?.ShardingDatabases;

if (shardingData == null || !shardingData.Any())
Expand Down Expand Up @@ -89,7 +89,7 @@ static void Main(string[] args)
{
var key = GetSetShardingEntriesFileStoreCache.ShardingEntryPrefix + shardingEntry.Name;
readWriteService.SetClass(key, shardingEntry);
Console.WriteLine($"Added the sharding entry with the name of {shardingEntry.Name} added to the FileStore");
Console.WriteLine($"Added the sharding entry with the name of '{shardingEntry.Name}' added to the FileStore");
}

Console.WriteLine($"Successfully copied {shardingData.Count} sharding entry to the FileStore Cache called '{fileStoreName}'.");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Cache": {
"ShardingEntry-Default Database": "{\r\n \"Name\": \"Default Database\",\r\n \"DatabaseName\": null,\r\n \"ConnectionName\": \"DefaultConnection\",\r\n \"DatabaseType\": \"SqlServer\"\r\n}",
"ShardingEntry-DatabaseWest1": "{\r\n \"Name\": \"DatabaseWest1\",\r\n \"DatabaseName\": \"asp.net-Example6.Sharding_West1\",\r\n \"ConnectionName\": \"WestCoastServer\",\r\n \"DatabaseType\": \"SqlServer\"\r\n}",
"ShardingEntry-DatabaseEast1": "{\r\n \"Name\": \"DatabaseEast1\",\r\n \"DatabaseName\": \"asp.net-Example6.Sharding_East1\",\r\n \"ConnectionName\": \"EastCoastServer\",\r\n \"DatabaseType\": \"SqlServer\"\r\n}"
},
"TimeOuts": {}
}

0 comments on commit 3f5ae35

Please sign in to comment.