Skip to content

Commit d0e890d

Browse files
committed
Version 4.1.0
1 parent 8036855 commit d0e890d

File tree

10 files changed

+51
-24
lines changed

10 files changed

+51
-24
lines changed

AuthPermissions.AspNetCore/AuthPermissions.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0-preview034" />
22+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

AuthPermissions.AspNetCore/CreateNuGetRelease.nuspec

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
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>4.0.0</version>
5+
<version>4.1.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-
- Now supports .NET6 and .NET 7 frameworks.
12-
- Updated all the .NET 6 NuGets to the latest versions.
13-
- Simplification (non-breaking): All tenant version now have a `DataKey` of length of 250.
11+
Adds a service which can handle multiple languages (known in .NET a localization)
1412
</releaseNotes>
1513
<license type="expression">MIT</license>
1614
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>
@@ -27,16 +25,44 @@
2725
<dependency id="Microsoft.EntityFrameworkCore.SqlServer" version="6.0.11" />
2826
<dependency id="Microsoft.EntityFrameworkCore.Tools" version="6.0.11" />
2927
<dependency id="Microsoft.Extensions.Hosting" version="6.0.1" />
30-
<dependency id="Net.RunMethodsSequentially" version="1.3.1" />
31-
<dependency id="Npgsql.EntityFrameworkCore.PostgreSQL" version="6.0.6" />
32-
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="6.0.8" />
33-
<dependency id="Microsoft.AspNetCore.Authorization" version="6.0.8" />
28+
<dependency id="Net.RunMethodsSequentially" version="2.0.0" />
29+
<dependency id="Npgsql.EntityFrameworkCore.PostgreSQL" version="6.0.7" />
30+
<dependency id="Net.LocalizeMessagesAndErrors" version="1.0.0" />
31+
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="6.0.11" />
32+
<dependency id="Microsoft.AspNetCore.Authorization" version="6.0.11" />
3433
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
3534
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
3635
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
37-
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3" />
38-
<dependency id="DistributedLock" version="2.3.1" />
39-
<dependency id="EfCore.TestSupport" version="5.2.2" />
36+
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3.1" />
37+
<dependency id="Microsoft.Extensions.Localization.Abstractions" version="6.0.11" />
38+
<dependency id="DistributedLock" version="2.3.2" />
39+
<dependency id="EfCore.TestSupport" version="5.3.0" />
40+
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
41+
<dependency id="Microsoft.Graph" version="4.37.0" />
42+
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />
43+
</group>
44+
<group targetFramework="net7.0">
45+
<dependency id="GenericServices.StatusGeneric" version="1.2.0" />
46+
<dependency id="Microsoft.AspNetCore.Identity.EntityFrameworkCore" version="7.0.0" />
47+
<dependency id="Microsoft.Data.Sqlite.Core" version="7.0.0" />
48+
<dependency id="Microsoft.EntityFrameworkCore" version="7.0.0" />
49+
<dependency id="Microsoft.EntityFrameworkCore.InMemory" version="7.0.0" />
50+
<dependency id="Microsoft.EntityFrameworkCore.Sqlite" version="7.0.0" />
51+
<dependency id="Microsoft.EntityFrameworkCore.SqlServer" version="7.0.0" />
52+
<dependency id="Microsoft.EntityFrameworkCore.Tools" version="7.0.0" />
53+
<dependency id="Microsoft.Extensions.Hosting" version="7.0.0" />
54+
<dependency id="Net.RunMethodsSequentially" version="2.0.0" />
55+
<dependency id="Npgsql.EntityFrameworkCore.PostgreSQL" version="7.0.0" />
56+
<dependency id="Net.LocalizeMessagesAndErrors" version="1.0.0" />
57+
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="7.0.0" />
58+
<dependency id="Microsoft.AspNetCore.Authorization" version="7.0.0" />
59+
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
60+
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
61+
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
62+
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3.1" />
63+
<dependency id="Microsoft.Extensions.Localization.Abstractions" version="7.0.0" />
64+
<dependency id="DistributedLock" version="2.3.2" />
65+
<dependency id="EfCore.TestSupport" version="5.3.0" />
4066
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
4167
<dependency id="Microsoft.Graph" version="4.37.0" />
4268
<dependency id="Net.DistributedFileStoreCache" version="2.0.0" />

AuthPermissions.AspNetCore/MultiProjPack.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
<!-- See documentation for all the possible values -->
55
<metadata>
66
<id>AuthPermissions.AspNetCore</id>
7-
<version>4.0.0</version>
7+
<version>4.1.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-
- Now supports .NET6 and .NET 7 frameworks.
14-
- Updated all the .NET 6 NuGets to the latest versions.
15-
- Simplification (non-breaking): All tenant version now have a `DataKey` of length of 250.
13+
Adds a service which can handle multiple languages (known in .NET a localization)
1614
</releaseNotes>
1715
<license type="expression">MIT</license>
1816
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>

AuthPermissions.BaseCode/AuthPermissions - list of localizable keys & messages - english.csv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Name,Value,Comment
1+
Name,Value,Comment
22
AuthRolesAdminService_CreateRoleToPermissionsAsync_Success,Successfully added the new role {0}.,AuthPermissions project
33
AuthRolesAdminService_CreateRoleToPermissionsAsync_BadRoleName,The RoleName isn't filled in,
44
AuthRolesAdminService_CreateRoleToPermissionsAsync_DuplicateRoleName,There is already a Role with the name of '{0}'.,
@@ -61,7 +61,7 @@ LinkToTenantDataService_UserNotFound,Could not find the user you were looking fo
6161
LinkToTenantDataService_TenantNotFound,Could not find the tenant you were looking for.,
6262
LinkToTenantDataService_Success,You are now linked the the data of the tenant called '{0}',
6363
ShardingConnections_NoConnectionString,The {0} '{1}' wasn't found in the connection strings.,
64-
ShardingConnections_BadConnectionString,There was an error when trying to create a connection string. Typically this is because the connection string doesn't match the {0}.,
64+
ShardingConnections_BadConnectionString,There was an  error when trying to create a connection string. Typically this is because the connection string doesn't match the {0}.,
6565
ShardingConnections_NoDatabaseDefined,The DatabaseName can't be null or empty when the connection string doesn't have a database defined.,
6666
AuthUser_InvalidRoleHidden,You cannot add the role '{0}' to an Auth tenant user because it can only be used by the App Admin.,
6767
AuthUser_InvalidRoleAutoAdd,You cannot add the role '{0}' to an Auth tenant user because it is automatically to tenant users.,AuthPermissions.BaseCode project
@@ -107,3 +107,5 @@ AccessDatabaseInformation_SuccessUpdate,Successfully updated the {0} with your c
107107
AccessDatabaseInformation_DbNameMissing,"The Name is null, which isn't allowed.",
108108
AccessDatabaseInformation_DatabaseInfoDuplicate,The {0} of {1} is already used.,
109109
DemoGetDatabaseForNewTenant_NoDbForTenant,We cannot create the tenant at this time. Please contact the support team with the code: no db available.,
110+
StatusGenericLocalizer_MessageHasOneError,Failed with 1 error.,StatusGenericLocalizer
111+
StatusGenericLocalizer_MessageHasManyErrors,Failed with {0} errors.,

AuthPermissions.BaseCode/AuthPermissions.BaseCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</ItemGroup>
3232

3333
<ItemGroup>
34-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0-preview034" />
34+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0" />
3535
</ItemGroup>
3636

3737
</Project>

AuthPermissions/AuthPermissions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</ItemGroup>
4242

4343
<ItemGroup>
44-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0-preview034" />
44+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0" />
4545
</ItemGroup>
4646

4747
<ItemGroup>

ReleaseNotes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 4.1.0
4+
5+
- Adds a service which can handle multiple languages (known in .NET a localization)
6+
37
## 4.0.0
48

59
- Improved feature: Now supports .NET6 and .NET 7 frameworks.

Test/Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</ItemGroup>
5555

5656
<ItemGroup>
57-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0-preview034" />
57+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="1.0.0" />
5858
<PackageReference Include="ResXResourceReader.NetStandard" Version="1.1.0" />
5959
<PackageReference Include="CsvHelper" Version="30.0.1" />
6060
</ItemGroup>

Test/TestHelpers/AuthPSetupHelpers.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
using Example4.ShopCode.EfCoreCode;
1414
using Example6.SingleLevelSharding.AppStart;
1515
using Example6.SingleLevelSharding.EfCoreCode;
16-
using LocalizeMessagesAndErrors;
17-
using Test.StubClasses;
1816
using Xunit.Extensions.AssertExtensions;
1917

2018
namespace Test.TestHelpers

Test/UnitTests/TestAuthPermissionsAdmin/TestAuthUsersAdminService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using AuthPermissions.BaseCode.DataLayer.EfCode;
1010
using AuthPermissions.BaseCode.SetupCode;
1111
using Microsoft.EntityFrameworkCore;
12-
using Test.StubClasses;
1312
using Test.TestHelpers;
1413
using TestSupport.EfHelpers;
1514
using Xunit;

0 commit comments

Comments
 (0)