Proper gRPC protocol

This commit is contained in:
2025-09-18 01:02:25 +08:00
parent 3d47b4e44e
commit f6f0703cb3
6 changed files with 167 additions and 64 deletions

View File

@@ -1,4 +1,5 @@
using DysonNetwork.Shared.Proto;
using DysonNetwork.Shared.Registry;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -10,15 +11,7 @@ public static class DysonAuthStartup
this IServiceCollection services
)
{
services.AddGrpcClient<AuthService.AuthServiceClient>(o =>
{
o.Address = new Uri("https://pass");
});
services.AddGrpcClient<PermissionService.PermissionServiceClient>(o =>
{
o.Address = new Uri("https://pass");
});
services.AddAuthService();
services.AddAuthentication(options =>
{