using System; using Microsoft.AspNetCore.Authentication; using Prospect.Server.Api.Services.Auth.Entity; using Prospect.Server.Api.Services.Auth.User; namespace Prospect.Server.Api.Services.Auth { public static class AuthenticationBuilderExtensions { public static AuthenticationBuilder AddUserAuthentication(this AuthenticationBuilder authenticationBuilder, Action options) { return authenticationBuilder.AddScheme(UserAuthenticationOptions.DefaultScheme, options); } public static AuthenticationBuilder AddEntityAuthentication(this AuthenticationBuilder authenticationBuilder, Action options) { return authenticationBuilder.AddScheme(EntityAuthenticationOptions.DefaultScheme, options); } } }