using Microsoft.Extensions.DependencyInjection; namespace DotBased.ASP.Auth; public static class DotBasedAuthDependencyInjection { /// /// Use the DotBased authentication implementation /// /// Use the app.UseAuthentication() and app.UseAuthorization()! /// Service collection /// DotBased auth configuration public static BasedAuthBuilder UseBasedServerAuth(this IServiceCollection services, Action? configurationAction = null) { var authBuilder = new BasedAuthBuilder(services, configurationAction); return authBuilder; } }