0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-07-01 19:12:57 +00:00
CleanArchitecture/CleanArchitecture.IntegrationTests/Infrastructure/Auth/TestAuthenticationExtensions.cs
2023-08-31 16:00:25 +02:00

17 lines
533 B
C#

using System;
using Microsoft.AspNetCore.Authentication;
namespace CleanArchitecture.IntegrationTests.Infrastructure.Auth;
public static class TestAuthenticationExtensions
{
public static AuthenticationBuilder AddTestAuthentication(
this AuthenticationBuilder builder,
Action<TestAuthenticationOptions> configureOptions)
{
return builder.AddScheme<TestAuthenticationOptions, TestAuthenticationHandler>(
"Testing",
"Test Authentication",
configureOptions);
}
}