4 implementations of ChallengeAsync
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationService.cs (1)
107public virtual async Task ChallengeAsync(HttpContext context, string? scheme, AuthenticationProperties? properties)
Microsoft.AspNetCore.Authorization.Test (3)
PolicyEvaluatorTests.cs (2)
192public Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties) 215public Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties)
TestObjects\TestAuthenticationService.cs (1)
33public Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties)
15 references to ChallengeAsync
Microsoft.AspNetCore.Authentication.Abstractions (4)
AuthenticationHttpContextExtensions.cs (1)
74GetAuthenticationService(context).ChallengeAsync(context, scheme, properties);
AuthenticationOptions.cs (1)
84/// Used as the default scheme by <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.
IAuthenticationSchemeProvider.cs (2)
35/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>. 39/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationSchemeProvider.cs (2)
74/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>. 78/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
Microsoft.AspNetCore.Authorization.Test (5)
AuthorizationMiddlewareResultHandlerTests.cs (5)
74authenticationServiceMock.Verify(service => service.ChallengeAsync(httpContext, It.IsAny<string>(), null), Times.Exactly(3)); 75authenticationServiceMock.Verify(service => service.ChallengeAsync(httpContext, firstScheme, null), Times.Once); 76authenticationServiceMock.Verify(service => service.ChallengeAsync(httpContext, secondScheme, null), Times.Once); 77authenticationServiceMock.Verify(service => service.ChallengeAsync(httpContext, thirdScheme, null), Times.Once); 92authenticationServiceMock.Verify(service => service.ChallengeAsync(httpContext, null, null), Times.Once);
Microsoft.AspNetCore.Http.Results.Tests (2)
ChallengeResultTests.cs (2)
26auth.Verify(c => c.ChallengeAsync(httpContext, "", null), Times.Exactly(1)); 41auth.Verify(c => c.ChallengeAsync(httpContext, null, null), Times.Exactly(1));
Microsoft.AspNetCore.Mvc.Core.Test (2)
ChallengeResultTest.cs (2)
40auth.Verify(c => c.ChallengeAsync(httpContext.Object, "", null), Times.Exactly(1)); 65auth.Verify(c => c.ChallengeAsync(httpContext.Object, null, null), Times.Exactly(1));