using DysonNetwork.Shared.Proto; using DysonNetwork.Shared.Registry; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace DysonNetwork.Shared.Auth; public static class DysonAuthStartup { public static IServiceCollection AddDysonAuth( this IServiceCollection services ) { services.AddAuthService(); services.AddAuthentication(options => { options.DefaultAuthenticateScheme = AuthConstants.SchemeName; options.DefaultChallengeScheme = AuthConstants.SchemeName; }) .AddScheme(AuthConstants.SchemeName, _ => { }); return services; } }