Skip to content

Commit c222b54

Browse files
committed
Fixed identity registration.
1 parent 204c1f5 commit c222b54

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Shuttle.Access.Application/ConfigureApplicationParticipant.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ public async Task HandleAsync(ConfigureApplication message, CancellationToken ca
174174

175175
logger.LogDebug($"Registering system administrator with identity name '{message.AdministratorIdentityName}'.");
176176

177-
var systemAdministrator = (await identityQuery.SearchAsync(new Query.Identity.Specification().WithName(message.AdministratorIdentityName), cancellationToken)).FirstOrDefault();
177+
var systemAdministrator = (await identityQuery.SearchAsync(new Query.Identity.Specification()
178+
.WithTenantId(systemTenantId)
179+
.WithName(message.AdministratorIdentityName), cancellationToken)).FirstOrDefault();
178180

179181
var registerIdentityMessage = new RegisterIdentity(systemAdministrator?.Id ?? Guid.NewGuid(), message.AdministratorIdentityName, string.Empty, string.Empty, hashingService.Sha256(message.AdministratorPassword), "system://access", true, systemTenantId, "system")
180182
.AddTenantId(systemTenantId)

Shuttle.Access.Application/Shuttle.Access.Application.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<PropertyGroup>
3333
<Description>Application concern implementations such as Shuttle.Mediator participants.</Description>
34-
<Version>9.0.2</Version>
34+
<Version>9.0.3</Version>
3535
<Authors>Eben Roux</Authors>
3636
<Company>Shuttle</Company>
3737
<Copyright>Copyright (c) 2025, Eben Roux</Copyright>

0 commit comments

Comments
 (0)