Skip to content

Commit 2f5d931

Browse files
committed
Fix bug + more comments
1 parent a5de08b commit 2f5d931

23 files changed

Lines changed: 85 additions & 1511 deletions

AuthPermissions.AspNetCore/CreateNuGetRelease.nuspec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
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>3.1.0</version>
5+
<version>3.2.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-
- New feature: Now supports PostgreSQL database
11+
- BREAKING CHANGE: The 3.0.0 sharding didn't work with Azure, so the way to define databases for sharding has changed - see issue #29 and docs: Setup -&gt; Multi tenant configuration -&gt; Sharding database settings
12+
- Improvement: The AuthUserAdmin method called `UpdateUserAsync` now allows you to select which properties you want to update - see docs: Admin -&gt; AuthUser admin.
13+
- Removed: Removed AuthUserAdmin methods 1AddRoleToUser` and `RemoveRoleToUser` as the change to the `UpdateUserAsync` covers this.
1214
</releaseNotes>
1315
<license type="expression">MIT</license>
1416
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>
@@ -33,6 +35,8 @@
3335
<dependency id="EntityFrameworkCore.Exceptions.PostgreSQL" version="6.0.3" />
3436
<dependency id="EntityFrameworkCore.Exceptions.Sqlite" version="6.0.3" />
3537
<dependency id="EntityFrameworkCore.Exceptions.SqlServer" version="6.0.3" />
38+
<dependency id="EfCore.TestSupport" version="5.2.2" />
39+
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" />
3640
</group>
3741
</dependencies>
3842
</metadata>
@@ -50,6 +54,9 @@
5054
<file src="..\AuthPermissions.PostgreSql\bin\Release\net6.0\AuthPermissions.PostgreSql.pdb" target="lib\net6.0" />
5155
<file src="..\AuthPermissions.SqlServer\bin\Release\net6.0\AuthPermissions.SqlServer.dll" target="lib\net6.0" />
5256
<file src="..\AuthPermissions.SqlServer\bin\Release\net6.0\AuthPermissions.SqlServer.pdb" target="lib\net6.0" />
57+
<file src="..\AuthPermissions.SupportCode\bin\Release\net6.0\AuthPermissions.SupportCode.dll" target="lib\net6.0" />
58+
<file src="..\AuthPermissions.SupportCode\bin\Release\net6.0\AuthPermissions.SupportCode.xml" target="lib\net6.0" />
59+
<file src="..\AuthPermissions.SupportCode\bin\Release\net6.0\AuthPermissions.SupportCode.pdb" target="lib\net6.0" />
5360
<file src="..\AuthPermissions.AspNetCore\images\AuthPermissionsAspNetCoreNuGetIcon.png" target="images\" />
5461
</files>
5562
</package>

AuthPermissions.AspNetCore/Services/DatabaseInformation.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public class DatabaseInformation
3636
/// </summary>
3737
public string DatabaseType { get; set; } = "SqlServer";
3838

39+
/// <summary>
40+
/// Useful for debugging
41+
/// </summary>
42+
/// <returns></returns>
3943
public override string ToString()
4044
{
4145
return $"{nameof(Name)}: {Name}, {nameof(DatabaseName)}: {DatabaseName ?? " < null > "}, {nameof(ConnectionName)}: {ConnectionName}, {nameof(DatabaseType)}: {DatabaseType}";

AuthPermissions.BaseCode/CommonCode/IEncryptDecryptService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace AuthPermissions.BaseCode.CommonCode;
55

6+
/// <summary>
7+
/// This defines an Encrypt/Decrypt service used by AuthP
8+
/// </summary>
69
public interface IEncryptDecryptService
710
{
811
/// <summary>

AuthPermissions.BaseCode/DataLayer/Migrations/20210707095141_Initial.Designer.cs

Lines changed: 0 additions & 223 deletions
This file was deleted.

0 commit comments

Comments
 (0)