feat(auth): cut MxGateway API keys over to ZB.MOM.WW.Auth.ApiKeys 0.1.2; keep constraint enforcement+gRPC+CLI on top (Task 1.3)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using Microsoft.Extensions.Diagnostics.HealthChecks;
|
||||
using Microsoft.Extensions.Options;
|
||||
using ZB.MOM.WW.MxGateway.Server.Configuration;
|
||||
using ZB.MOM.WW.Auth.ApiKeys.Sqlite;
|
||||
using ZB.MOM.WW.MxGateway.Server.Diagnostics;
|
||||
using ZB.MOM.WW.MxGateway.Server.Security.Authentication;
|
||||
|
||||
namespace ZB.MOM.WW.MxGateway.Tests.Diagnostics;
|
||||
|
||||
@@ -10,13 +8,8 @@ public sealed class AuthStoreHealthCheckTests
|
||||
{
|
||||
private static AuthSqliteConnectionFactory FactoryFor(string sqlitePath)
|
||||
{
|
||||
// GatewayOptions.Authentication and AuthenticationOptions.SqlitePath are both
|
||||
// init-only, so populate them through object initializers.
|
||||
var options = new GatewayOptions
|
||||
{
|
||||
Authentication = new AuthenticationOptions { SqlitePath = sqlitePath },
|
||||
};
|
||||
return new AuthSqliteConnectionFactory(Options.Create(options));
|
||||
// The shared connection factory targets a database path directly.
|
||||
return new AuthSqliteConnectionFactory(sqlitePath);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user