mirror of
https://github.com/hmaxnl/DotBased.git
synced 2024-09-20 04:14:20 +02:00
13 lines
430 B
C#
13 lines
430 B
C#
|
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>();
|
||
|
}
|
||
|
}
|