2 interfaces inheriting from IAuthenticationHandler
Microsoft.AspNetCore.Authentication.Abstractions (2)
IAuthenticationRequestHandler.cs (1)
9public interface IAuthenticationRequestHandler : IAuthenticationHandler
IAuthenticationSignOutHandler.cs (1)
9public interface IAuthenticationSignOutHandler : IAuthenticationHandler
11 implementations of IAuthenticationHandler
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
16public abstract class AuthenticationHandler<TOptions> : IAuthenticationHandler where TOptions : AuthenticationSchemeOptions, new()
Microsoft.AspNetCore.Authentication.Core.Test (5)
AuthenticationSchemeProviderTests.cs (1)
256private class Handler : IAuthenticationHandler
AuthenticationServiceTests.cs (3)
253private class BaseHandler : IAuthenticationHandler 341private class UberHandler : IAuthenticationHandler, IAuthenticationRequestHandler, IAuthenticationSignInHandler, IAuthenticationSignOutHandler 379private class ForbidHandler : IAuthenticationHandler, IAuthenticationRequestHandler, IAuthenticationSignInHandler, IAuthenticationSignOutHandler
TokenExtensionTests.cs (1)
152private class SimpleAuth : IAuthenticationHandler
Microsoft.AspNetCore.Authentication.Test (1)
AuthenticationMiddlewareTests.cs (1)
288private class ThrowsHandler : IAuthenticationHandler
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
19private class NoopHandler : IAuthenticationHandler
Microsoft.AspNetCore.Server.HttpSys (1)
AuthenticationHandler.cs (1)
9internal sealed class AuthenticationHandler : IAuthenticationHandler
Microsoft.AspNetCore.Server.IIS (1)
Core\IISServerAuthenticationHandlerInternal.cs (1)
14internal sealed class IISServerAuthenticationHandlerInternal : IAuthenticationHandler
Microsoft.AspNetCore.Server.IISIntegration (1)
AuthenticationHandler.cs (1)
11internal sealed class AuthenticationHandler : IAuthenticationHandler
36 references to IAuthenticationHandler
Microsoft.AspNetCore.Authentication (2)
AuthenticationBuilder.cs (1)
32where THandler : class, IAuthenticationHandler
AuthenticationHandler.cs (1)
13/// An opinionated abstraction for implementing <see cref="IAuthenticationHandler"/>.
Microsoft.AspNetCore.Authentication.Abstractions (9)
AuthenticationOptions.cs (2)
51/// <typeparam name="THandler">The <see cref="IAuthenticationHandler"/> responsible for the scheme.</typeparam> 54public void AddScheme<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string name, string? displayName) where THandler : IAuthenticationHandler
AuthenticationScheme.cs (4)
9/// AuthenticationSchemes assign a name to a specific <see cref="IAuthenticationHandler"/> 19/// <param name="handlerType">The <see cref="IAuthenticationHandler"/> type that handles this scheme.</param> 24if (!typeof(IAuthenticationHandler).IsAssignableFrom(handlerType)) 45/// The <see cref="IAuthenticationHandler"/> type that handles this scheme.
AuthenticationSchemeBuilder.cs (1)
33/// Gets or sets the <see cref="IAuthenticationHandler"/> type responsible for this scheme.
IAuthenticationHandlerProvider.cs (1)
19Task<IAuthenticationHandler?> GetHandlerAsync(HttpContext context, string authenticationScheme);
IAuthenticationRequestHandler.cs (1)
15/// which does not invoke any subsequent <see cref="IAuthenticationHandler"/> or middleware configured in the request pipeline
Microsoft.AspNetCore.Authentication.Core (13)
AuthenticationHandlerProvider.cs (6)
29private readonly Dictionary<string, IAuthenticationHandler> _handlerMap = new Dictionary<string, IAuthenticationHandler>(StringComparer.Ordinal); 37public async Task<IAuthenticationHandler?> GetHandlerAsync(HttpContext context, string authenticationScheme) 39if (_handlerMap.TryGetValue(authenticationScheme, out var value)) 49var handler = (context.RequestServices.GetService(scheme.HandlerType) ?? 51as IAuthenticationHandler;
AuthenticationService.cs (7)
75var handler = await Handlers.GetHandlerAsync(context, scheme) ?? throw await CreateMissingHandlerException(scheme); 120var handler = await Handlers.GetHandlerAsync(context, scheme) ?? throw await CreateMissingHandlerException(scheme); 143var handler = await Handlers.GetHandlerAsync(context, scheme) ?? throw await CreateMissingHandlerException(scheme); 181var handler = await Handlers.GetHandlerAsync(context, scheme) ?? throw await CreateMissingSignInHandlerException(scheme); 209var handler = await Handlers.GetHandlerAsync(context, scheme) ?? throw await CreateMissingSignOutHandlerException(scheme); 258private async Task<Exception> CreateMismatchedSignInHandlerException(string scheme, IAuthenticationHandler handler) 297private async Task<Exception> CreateMismatchedSignOutHandlerException(string scheme, IAuthenticationHandler handler)
Microsoft.AspNetCore.Authentication.Test (9)
AuthenticationMetricsTest.cs (9)
19var authenticationHandler = new Mock<IAuthenticationHandler>(); 47var authenticationHandler = new Mock<IAuthenticationHandler>(); 75var authenticationHandler = new Mock<IAuthenticationHandler>(); 103var authenticationHandler = new Mock<IAuthenticationHandler>(); 134var authenticationService = CreateAuthenticationService(Mock.Of<IAuthenticationHandler>(), meterFactory); 155var authenticationHandler = new Mock<IAuthenticationHandler>(); 185var authenticationService = CreateAuthenticationService(Mock.Of<IAuthenticationHandler>(), meterFactory); 206var authenticationHandler = new Mock<IAuthenticationHandler>(); 332private static AuthenticationServiceImpl CreateAuthenticationService(IAuthenticationHandler authenticationHandler, TestMeterFactory meterFactory)
Microsoft.AspNetCore.Identity.Test (3)
SignInManagerTest.cs (3)
1045var handler = new Mock<IAuthenticationHandler>(); 1076var handler = new Mock<IAuthenticationHandler>(); 1108var handler = new Mock<IAuthenticationHandler>();