Skip to content

Commit 3f5ae35

Browse files
committed
Version 6.0.0
1 parent a889e29 commit 3f5ae35

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

AuthPermissions.AspNetCore/CreateNuGetRelease.nuspec

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
<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">
33
<metadata>
44
<id>AuthPermissions.AspNetCore</id>
5-
<version>5.0.1</version>
5+
<version>6.0.0</version>
66
<authors>Jon P Smith</authors>
77
<product>AuthPermissions.AspNetCore</product>
88
<copyright>Copyright (c) 2021 Jon P Smith</copyright>
99
<description>Provides extra authorization and multi-tenant features to a ASP.NET Core application.</description>
1010
<releaseNotes>
11-
- Minor improvements AccessDatabaseInformationJsonFile
12-
- Minor improvements to SignInAndCreateTenant (better handling of errors)
13-
- Minor improvements to IndividualUserAddUserManager (check password)
14-
</releaseNotes>
11+
- Significant changes to code to support sharding multi-tenant applications
12+
- BREAKING CHANGES: Replaced the old services for handling sharding entries due to a limitation
13+
- Improvement: The ability to define a sharding-only mode - see Configuring sharding &gt; sharding-only mode
14+
- Fix: The Sign up for a new tenant, with versioning now works with sharding-only tenants.
15+
- Improvement: New service to simplify the create / delete of sharding-only tenants.
16+
</releaseNotes>
1517
<license type="expression">MIT</license>
1618
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>
1719
<icon>images\AuthPermissionsAspNetCoreNuGetIcon.png</icon>
@@ -33,6 +35,7 @@
3335
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="6.0.11" />
3436
<dependency id="Microsoft.AspNetCore.Authorization" version="6.0.11" />
3537
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
38+
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
3639
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
3740
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
3841
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3.1" />
@@ -41,7 +44,6 @@
4144
<dependency id="EfCore.TestSupport" version="5.3.0" />
4245
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
4346
<dependency id="Microsoft.Graph" version="4.37.0" />
44-
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
4547
</group>
4648
<group targetFramework="net7.0">
4749
<dependency id="GenericServices.StatusGeneric" version="1.2.0" />
@@ -59,6 +61,7 @@
5961
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="7.0.0" />
6062
<dependency id="Microsoft.AspNetCore.Authorization" version="7.0.0" />
6163
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
64+
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
6265
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
6366
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
6467
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3.1" />
@@ -67,7 +70,6 @@
6770
<dependency id="EfCore.TestSupport" version="5.3.0" />
6871
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
6972
<dependency id="Microsoft.Graph" version="4.37.0" />
70-
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
7173
</group>
7274
</dependencies>
7375
</metadata>

AuthPermissions.AspNetCore/MultiProjPack.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
<!-- See documentation for all the possible values -->
55
<metadata>
66
<id>AuthPermissions.AspNetCore</id>
7-
<version>5.1.0-preview002</version>
7+
<version>6.0.0</version>
88
<authors>Jon P Smith</authors>
99
<product>AuthPermissions.AspNetCore</product>
1010
<copyright>Copyright (c) 2021 Jon P Smith</copyright>
1111
<description>Provides extra authorization and multi-tenant features to a ASP.NET Core application.</description>
1212
<releaseNotes>
13-
- Minor improvement to set the default sharding data.
13+
- Significant changes to code to support sharding multi-tenant applications
14+
- BREAKING CHANGES: Replaced the old services for handling sharding entries due to a limitation
15+
- Improvement: The ability to define a sharding-only mode - see Configuring sharding > sharding-only mode
16+
- Fix: The Sign up for a new tenant, with versioning now works with sharding-only tenants.
17+
- Improvement: New service to simplify the create / delete of sharding-only tenants.
1418
</releaseNotes>
1519
<license type="expression">MIT</license>
1620
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>

ConsoleApp.AuthP6Upgrade/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void Main(string[] args)
4141
}
4242

4343
var jsonString = File.ReadAllText(filePathToJsonFilePath);
44-
Console.WriteLine(jsonString);
44+
//Console.WriteLine(jsonString);
4545
var shardingData = JsonSerializer.Deserialize<JsonFileFormat>(jsonString)?.ShardingDatabases;
4646

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

9595
Console.WriteLine($"Successfully copied {shardingData.Count} sharding entry to the FileStore Cache called '{fileStoreName}'.");
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Cache": {
3+
"ShardingEntry-Default Database": "{\r\n \"Name\": \"Default Database\",\r\n \"DatabaseName\": null,\r\n \"ConnectionName\": \"DefaultConnection\",\r\n \"DatabaseType\": \"SqlServer\"\r\n}",
4+
"ShardingEntry-DatabaseWest1": "{\r\n \"Name\": \"DatabaseWest1\",\r\n \"DatabaseName\": \"asp.net-Example6.Sharding_West1\",\r\n \"ConnectionName\": \"WestCoastServer\",\r\n \"DatabaseType\": \"SqlServer\"\r\n}",
5+
"ShardingEntry-DatabaseEast1": "{\r\n \"Name\": \"DatabaseEast1\",\r\n \"DatabaseName\": \"asp.net-Example6.Sharding_East1\",\r\n \"ConnectionName\": \"EastCoastServer\",\r\n \"DatabaseType\": \"SqlServer\"\r\n}"
6+
},
7+
"TimeOuts": {}
8+
}

0 commit comments

Comments
 (0)