Stable user lockout, role and claim calls
This commit is contained in:
@@ -321,4 +321,8 @@ public sealed class UserService(IDbContextFactory<ApplicationDbContext> contextF
|
||||
return Result.OkIf(roleAddResult.IsSuccess && changedTotal > 0, ValidationError.Create("Failed to add user role.")
|
||||
.CausedBy(roleAddResult.Errors));
|
||||
}));
|
||||
|
||||
public async Task<Result<Claim[]>> GetRoleClaimsAsync(Guid roleId, Guid userId, CancellationToken cancellationToken = default) =>
|
||||
await Result.Try((Func<Task<Result<Claim[]>>>)(async () =>
|
||||
await skorubaService.GetRoleClaimsAsync(roleId, cancellationToken)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user