13 instantiations of AuthenticationFailureException
Microsoft.AspNetCore.Authentication (4)
HandleRequestResult.cs (2)
65=> Fail(new AuthenticationFailureException(failureMessage)); 74=> Fail(new AuthenticationFailureException(failureMessage), properties);
RemoteAuthenticationHandler.cs (2)
134throw new AuthenticationFailureException("An error was returned from the RemoteFailure event.", errorContext.Result.Failure); 140throw new AuthenticationFailureException("An error was encountered while handling the remote login.", errorContext.Failure);
Microsoft.AspNetCore.Authentication.Abstractions (2)
AuthenticateResult.cs (2)
121=> Fail(new AuthenticationFailureException(failureMessage)); 130=> Fail(new AuthenticationFailureException(failureMessage), properties);
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\NegotiateState.cs (1)
32error = new AuthenticationFailureException(authStatus.ToString());
NegotiateHandler.cs (1)
284throw new AuthenticationFailureException("An error was returned from the AuthenticationFailed event.", errorContext.Result.Failure);
Microsoft.AspNetCore.Authentication.OAuth (4)
OAuthHandler.cs (3)
99var deniedEx = new AuthenticationFailureException("Access was denied by the resource owner or by the remote server."); 118var ex = new AuthenticationFailureException(failureMessage.ToString()); 239return OAuthTokenResponse.Failed(new AuthenticationFailureException(errorMessage));
OAuthTokenResponse.cs (1)
118var exception = new AuthenticationFailureException(result.ToString());
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
280throw new AuthenticationFailureException("Twitter oauth_callback_confirmed is not true.");
41 references to AuthenticationFailureException
Microsoft.AspNetCore.Authentication.Abstractions (2)
AuthenticationFailureException.cs (2)
12/// Creates a new instance of <see cref="AuthenticationFailureException"/> 22/// Creates a new instance of <see cref="AuthenticationFailureException"/>
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (2)
99var deniedEx = new AuthenticationFailureException("Access was denied by the resource owner or by the remote server."); 118var ex = new AuthenticationFailureException(failureMessage.ToString());
OAuthTokenResponse.cs (1)
118var exception = new AuthenticationFailureException(result.ToString());
Microsoft.AspNetCore.Authentication.Test (36)
OAuthTests.cs (4)
466var exception = await Assert.ThrowsAsync<AuthenticationFailureException>( 507var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(
OpenIdConnect\OpenIdConnectEventTests.cs (14)
67var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 136var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 245var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 351var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 459var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 569var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 693var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (14)
67var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 136var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 245var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 351var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 459var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 569var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate 693var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(delegate
WsFederation\WsFederationTest.cs (2)
146var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(() => httpClient.PostAsync(httpClient.BaseAddress + "signin-wsfed", form));
WsFederation\WsFederationTest_Handler.cs (2)
144var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(() => httpClient.PostAsync(httpClient.BaseAddress + "signin-wsfed", form));