using DysonNetwork.Shared.Proto; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace DysonNetwork.Shared.Auth; public static class DysonAuthStartup { public static IServiceCollection AddDysonAuth( this IServiceCollection services ) { services.AddGrpcClient(o => { o.Address = new Uri("https://pass"); }); services.AddGrpcClient(o => { o.Address = new Uri("https://pass"); }); services.AddAuthentication(options => { options.DefaultAuthenticateScheme = AuthConstants.SchemeName; options.DefaultChallengeScheme = AuthConstants.SchemeName; }) .AddScheme(AuthConstants.SchemeName, _ => { }); return services; } }