Skip to content

Commit 29d0af3

Browse files
committed
Version 6.2.1 - bug fix
1 parent d2c5eff commit 29d0af3

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

AuthPermissions.AspNetCore/CreateNuGetRelease.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +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>6.2.0</version>
5+
<version>6.2.1</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 an ASP.NET Core application.</description>
1010
<releaseNotes>
11-
- Updated the "Sign up for a new tenant, with versioning" feature. See the UpdateToVersion620.md file in the GitHub repo for more
11+
- Fixed bug - SignInAndCreateTenant didn't return the AddNewUserDto.
1212
</releaseNotes>
1313
<license type="expression">MIT</license>
1414
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>

AuthPermissions.AspNetCore/MultiProjPack.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<!-- See documentation for all the possible values -->
55
<metadata>
66
<id>AuthPermissions.AspNetCore</id>
7-
<version>6.2.0</version>
7+
<version>6.2.1</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 an ASP.NET Core application.</description>
1212
<releaseNotes>
13-
- Updated the "Sign up for a new tenant, with versioning" feature. See the UpdateToVersion620.md file in the GitHub repo for more info.
13+
- Fixed bug - SignInAndCreateTenant didn't return the AddNewUserDto.
1414
</releaseNotes>
1515
<license type="expression">MIT</license>
1616
<projectUrl>https://github.com/JonPSmith/AuthPermissions.AspNetCore</projectUrl>

AuthPermissions.SupportCode/AddUsersServices/SignInAndCreateTenant.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public async Task<IStatusGeneric<AddNewUserDto>> SignUpNewTenantWithVersionAsync
154154
tenantData, versionData);
155155
if (status.CombineStatuses(userStatus).HasErrors)
156156
return status;
157+
status.SetResult(userStatus.Result);
157158

158159
//---------------------------------------------------------------
159160
// 4.Update the tenant's name to the correct name. This is only done after the

Test/StubClasses/StubAddNewUserManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public Task<IStatusGeneric<AddNewUserDto>> LoginAsync()
4848
var status = new StatusGenericHandler<AddNewUserDto>();
4949
if (_loginReturnsError)
5050
status.AddError("Error in Login");
51+
status.SetResult(new AddNewUserDto());
5152

5253
return Task.FromResult<IStatusGeneric<AddNewUserDto>>(status);
5354
}

Test/UnitTests/TestSupportCode/TestSignInAndCreateTenant.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public async Task TestAddUserAndNewTenantAsync_Example3Version(string version, s
8686
//VERIFY
8787
context.ChangeTracker.Clear();
8888
status.IsValid.ShouldBeTrue(status.GetAllErrors());
89+
status.Result.ShouldNotBeNull();
8990
var tenant = context.Tenants.Include(x => x.TenantRoles).Single();
9091
tenant.TenantFullName.ShouldEqual(tenantData.TenantName);
9192
tenant.TenantRoles.Select(x => x.RoleName).ToArray()

0 commit comments

Comments
 (0)