using HopFrame.Database; using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.DependencyInjection; namespace HopFrame.Security.Authentication; public static class HopFrameAuthenticationExtensions { public static AuthenticationBuilder AddHopFrameAuthentication(this IServiceCollection service) where TDbContext : HopDbContextBase { return service.AddAuthentication(HopFrameAuthentication.SchemeName).AddScheme>(HopFrameAuthentication.SchemeName, _ => {}); } }