1 implementation of GetHandlerAsync
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationHandlerProvider.cs (1)
37
public async Task<IAuthenticationHandler?>
GetHandlerAsync
(HttpContext context, string authenticationScheme)
8 references to GetHandlerAsync
Microsoft.AspNetCore.Authentication (1)
AuthenticationMiddleware.cs (1)
52
var handler = await handlers.
GetHandlerAsync
(context, scheme.Name) as IAuthenticationRequestHandler;
Microsoft.AspNetCore.Authentication.Core (5)
AuthenticationService.cs (5)
75
var handler = await Handlers.
GetHandlerAsync
(context, scheme) ?? throw await CreateMissingHandlerException(scheme);
120
var handler = await Handlers.
GetHandlerAsync
(context, scheme) ?? throw await CreateMissingHandlerException(scheme);
143
var handler = await Handlers.
GetHandlerAsync
(context, scheme) ?? throw await CreateMissingHandlerException(scheme);
181
var handler = await Handlers.
GetHandlerAsync
(context, scheme) ?? throw await CreateMissingSignInHandlerException(scheme);
209
var handler = await Handlers.
GetHandlerAsync
(context, scheme) ?? throw await CreateMissingSignOutHandlerException(scheme);
Microsoft.AspNetCore.Authentication.Test (2)
AuthenticationMetricsTest.cs (1)
335
authenticationHandlerProvider.Setup(p => p.
GetHandlerAsync
(It.IsAny<HttpContext>(), "custom")).Returns(Task.FromResult(authenticationHandler));
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
443
var handler = await resolver.
GetHandlerAsync
(context, OpenIdConnectDefaults.AuthenticationScheme) as OpenIdConnectHandler;