mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-07-01 19:12:57 +00:00
17 lines
533 B
C#
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);
|
|
}
|
|
} |