Architecture remediation: P1 tier (process & hardening) #121
+2
-2
@@ -22,8 +22,8 @@
|
|||||||
(IntegrationTests-028).
|
(IntegrationTests-028).
|
||||||
-->
|
-->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.2" />
|
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.4" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.2" />
|
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.4" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.7" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.7" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.7" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.7" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Grpc.AspNetCore" Version="2.76.0" />
|
<PackageReference Include="Grpc.AspNetCore" Version="2.76.0" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.2" />
|
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.4" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.2" />
|
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.4" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Auth.ApiKeys" Version="0.1.2" />
|
<PackageReference Include="ZB.MOM.WW.Auth.ApiKeys" Version="0.1.4" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Auth.AspNetCore" Version="0.1.2" />
|
<PackageReference Include="ZB.MOM.WW.Auth.AspNetCore" Version="0.1.4" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Audit" Version="0.1.0" />
|
<PackageReference Include="ZB.MOM.WW.Audit" Version="0.1.0" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Theme" Version="0.3.1" />
|
<PackageReference Include="ZB.MOM.WW.Theme" Version="0.3.1" />
|
||||||
<PackageReference Include="ZB.MOM.WW.Configuration" Version="0.1.0" />
|
<PackageReference Include="ZB.MOM.WW.Configuration" Version="0.1.0" />
|
||||||
|
|||||||
@@ -623,6 +623,27 @@ public sealed class DashboardSnapshotServiceTests
|
|||||||
{
|
{
|
||||||
return Task.FromResult(false);
|
return Task.FromResult(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Does nothing; the fake never changes scopes (added to IApiKeyAdminStore in Auth 0.1.3).</summary>
|
||||||
|
/// <param name="keyId">Key identifier.</param>
|
||||||
|
/// <param name="scopes">Replacement scope set.</param>
|
||||||
|
/// <param name="ct">Cancellation token.</param>
|
||||||
|
/// <returns><see langword="false"/>, always.</returns>
|
||||||
|
public Task<bool> SetScopesAsync(string keyId, IReadOnlySet<string> scopes, CancellationToken ct)
|
||||||
|
{
|
||||||
|
return Task.FromResult(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Does nothing; the fake never toggles key state (added to IApiKeyAdminStore in Auth 0.1.3).</summary>
|
||||||
|
/// <param name="keyId">Key identifier.</param>
|
||||||
|
/// <param name="enabled">Desired enabled state.</param>
|
||||||
|
/// <param name="whenUtc">Timestamp for the state change.</param>
|
||||||
|
/// <param name="ct">Cancellation token.</param>
|
||||||
|
/// <returns><see langword="false"/>, always.</returns>
|
||||||
|
public Task<bool> SetEnabledAsync(string keyId, bool enabled, DateTimeOffset whenUtc, CancellationToken ct)
|
||||||
|
{
|
||||||
|
return Task.FromResult(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CountingApiKeyAdminStore(params ApiKeyListItem[] records) : FakeApiKeyAdminStore
|
private class CountingApiKeyAdminStore(params ApiKeyListItem[] records) : FakeApiKeyAdminStore
|
||||||
|
|||||||
Reference in New Issue
Block a user