Implementing ASP auth module
This commit is contained in:
13
DotBased.ASP.Auth/DotBasedASPAuth.cs
Normal file
13
DotBased.ASP.Auth/DotBasedASPAuth.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace DotBased.ASP.Auth;
|
||||
|
||||
public static class DotBasedASPAuth
|
||||
{
|
||||
public static void UseBasedAuth(this WebApplicationBuilder builder, BasedAuthConfiguration configuration)
|
||||
{
|
||||
builder.Services.AddScoped<AuthenticationStateProvider, BasedAuthenticationStateProvider>();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user