Associate and Disassociate MFA factors for OOBSMS, OOBEmail and TOTP … #359
Annotations
22 errors and 13 warnings
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L66
The name 'result' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L67
The name 'result' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L78
The name 'previous' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L80
The name 'previous' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L82
The name 'completionCode' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L66
The name 'result' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L67
The name 'result' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L78
The name 'previous' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L80
The name 'previous' does not exist in the current context
|
build:
src/IdentityInfrastructure.UnitTests/ApplicationServices/MfaServiceSpec.cs#L82
The name 'completionCode' does not exist in the current context
|
IdentityInfrastructure.IntegrationTests.MfaApiSpec ► WhenChallengeMfaAuthenticatorWithOobSms_ThenChallenges:
src/Common/Result.cs#L187
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15.trx
Error:
System.InvalidOperationException : The result is in a faulted state, with error: `{
"Type": "https://tools.ietf.org/html/rfc7231#section-6.6.1",
"Title": "An unexpected error occurred",
"Status": 500,
"Detail": "The method or operation is not implemented.",
"Instance": "https://localhost/passwords/mfa/authenticators/mfaauth_EPuwpCGg4UKdzwA7aQn2g/challenge",
"Exception": "System.NotImplementedException: The method or operation is not implemented.\r\n at IdentityApplication.PasswordCredentialsApplication.ChallengeMfaAuthenticatorAsync(ICallerContext caller, String mfaToken, String authenticatorId, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\IdentityApplication\\PasswordCredentialsApplication.Mfa.cs:line 158\r\n at IdentityInfrastructure.Api.MFA.MfaApi.ChallengeMfaAuthenticator(ChallengePasswordMfaAuthenticatorForCallerRequest request, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\IdentityInfrastructure\\Api\\MFA\\MfaApi.cs:line 43\r\n at IdentityInfrastructure.Api.MFA.MfaApiMediatRHandlers.ChallengeMfaAuthenticator_ChallengePasswordMfaAuthenticatorForCallerRequest_Handler.Handle(ChallengePasswordMfaAuthenticatorForCallerRequest request, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\IdentityInfrastructure\\obj\\Release\\net8.0\\Tools.Generators.Web.Api\\Tools.Generators.Web.Api.MinimalApiMediatRGenerator\\MinimalApiMediatRGeneratedHandlers.g.cs:line 489\r\n at Infrastructure.Web.Api.Common.Pipeline.ValidationBehavior\u00602.Handle(TRequest request, RequestHandlerDelegate\u00601 next, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Pipeline\\ValidationBehavior.cs:line 39\r\n at IdentityInfrastructure.MinimalApiRegistration.\u003C\u003Ec.\u003C\u003CRegisterRoutes\u003Eb__0_14\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\IdentityInfrastructure\\obj\\Release\\net8.0\\Tools.Generators.Web.Api\\Tools.Generators.Web.Api.MinimalApiMediatRGenerator\\MinimalApiMediatRGeneratedHandlers.g.cs:line 125\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003CTaskOfTToValueTaskOfObject\u003Eg__ExecuteAwaited|92_0[T](Task\u00601 task)\r\n at Infrastructure.Web.Api.Common.Endpoints.ContentNegotiationFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Endpoints\\ContentNegotiationFilter.cs:line 24\r\n at Infrastructure.Web.Api.Common.Endpoints.RequestCorrelationFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Endpoints\\RequestCorrelationFilter.cs:line 32\r\n at Infrastructure.Web.Api.Common.Endpoints.ApiUsageFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Endpoints\\ApiUsageFilter.cs:line 67\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003CExecuteValueTaskOfObject\u003Eg__ExecuteAwaited|129_0(ValueTask\u00601 valueTask, HttpContext httpContext, JsonTypeInfo\u00601 jsonTypeInfo)\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003C\u003Ec__DisplayClass101_0.\u003C\u003CHandleRequestBodyAndCompileRequestDelegate\u003Eb__0\u003Ed.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Infrastructure.Web.Hosting.Common.Extensions.WebApplicationExtensions.\u003C\u003Ec.\u003C\u003CEnableEventingPropagation\u003Eb__4_1\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Hosting.Common\\Extensions\\WebApplicationExtensions.cs:line 151\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n at Infrastructure.Web.Hosting.Common.Pipeline.MultiTenancyMiddleware.InvokeAsync(HttpContext context, ITenancyContext tenancyContext, ICallerContextFactory callerContextFactory, ITenantDetective tenantDetective, IEndUsersService endUsersService, IOrganizationsService organizationsService) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Hosting.Common\\Pipeline\\MultiTenancyMiddleware.cs:line 52\r\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.\u003CInvoke\u003Eg__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)",
"Extensions": {
"exception": "System.NotImplementedException: The method or operation is not implemented.\r\n at IdentityApplication.PasswordCredentialsApplication.ChallengeMfaAuthenticatorAsync(ICallerContext caller, String mfaToken, String authenticatorId, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\IdentityApplication\\PasswordCredentialsApplication.Mfa.cs:line 158\r\n at IdentityInfrastructure.Api.MFA.MfaApi.ChallengeMfaAuthenticator(ChallengePasswordMfaAuthenticatorForCallerRequest request, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\IdentityInfrastructure\\Api\\MFA\\MfaApi.cs:line 43\r\n at IdentityInfrastructure.Api.MFA.MfaApiMediatRHandlers.ChallengeMfaAuthenticator_ChallengePasswordMfaAuthenticatorForCallerRequest_Handler.Handle(ChallengePasswordMfaAuthenticatorForCallerRequest request, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\IdentityInfrastructure\\obj\\Release\\net8.0\\Tools.Generators.Web.Api\\Tools.Generators.Web.Api.MinimalApiMediatRGenerator\\MinimalApiMediatRGeneratedHandlers.g.cs:line 489\r\n at Infrastructure.Web.Api.Common.Pipeline.ValidationBehavior\u00602.Handle(TRequest request, RequestHandlerDelegate\u00601 next, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Pipeline\\ValidationBehavior.cs:line 39\r\n at IdentityInfrastructure.MinimalApiRegistration.\u003C\u003Ec.\u003C\u003CRegisterRoutes\u003Eb__0_14\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\IdentityInfrastructure\\obj\\Release\\net8.0\\Tools.Generators.Web.Api\\Tools.Generators.Web.Api.MinimalApiMediatRGenerator\\MinimalApiMediatRGeneratedHandlers.g.cs:line 125\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003CTaskOfTToValueTaskOfObject\u003Eg__ExecuteAwaited|92_0[T](Task\u00601 task)\r\n at Infrastructure.Web.Api.Common.Endpoints.ContentNegotiationFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Endpoints\\ContentNegotiationFilter.cs:line 24\r\n at Infrastructure.Web.Api.Common.Endpoints.RequestCorrelationFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Endpoints\\RequestCorrelationFilter.cs:line 32\r\n at Infrastructure.Web.Api.Common.Endpoints.ApiUsageFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Endpoints\\ApiUsageFilter.cs:line 67\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003CExecuteValueTaskOfObject\u003Eg__ExecuteAwaited|129_0(ValueTask\u00601 valueTask, HttpContext httpContext, JsonTypeInfo\u00601 jsonTypeInfo)\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003C\u003Ec__DisplayClass101_0.\u003C\u003CHandleRequestBodyAndCompileRequestDelegate\u003Eb__0\u003Ed.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Infrastructure.Web.Hosting.Common.Extensions.WebApplicationExtensions.\u003C\u003Ec.\u003C\u003CEnableEventingPropagation\u003Eb__4_1\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Hosting.Common\\Extensions\\WebApplicationExtensions.cs:line 151\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n at Infrastructure.Web.Hosting.Common.Pipeline.MultiTenancyMiddleware.InvokeAsync(HttpContext context, ITenancyContext tenancyContext, ICallerContextFactory callerContextFactory, ITenantDetective tenantDetective, IEndUsersService endUsersService, IOrganizationsService organizationsService) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Hosting.Common\\Pipeline\\MultiTenancyMiddleware.cs:line 52\r\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.\u003CInvoke\u003Eg__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)"
}
}`
|
Infrastructure.Web.Website.IntegrationTests.ApiDocsSpec ► WhenGetSwaggerUI_ThenDisplayed:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.AuthNApiSpec ► WhenAccessSecureApiAndAuthenticated_ThenReturnsResponse:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.AuthNApiSpec ► WhenAccessSecureApiAndNotAuthenticated_ThenReturnsError:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecureGetRequest ► WhenRequestedForAnonymousWithCSRFToken_ThenSucceeds:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecureGetRequest ► WhenRequestedWithNoCSRFToken_ThenSucceeds:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAnonymousUser ► WhenRequestedCSRFToken_ThenSucceeds:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAnonymousUser ► WhenRequestedWithMismatchedCookieAndHeaderForAnonymous_ThenSucceeds:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAuthenticatedUser ► WhenRequestedWithAnonymousCSRFToken_ThenForbidden:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAuthenticatedUser ► WhenRequestedWithUsersCSRFToken_ThenSucceeds:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenNoContext ► WhenRequestWebRoot_ThenReturnsIndexHtml:
src/IntegrationTesting.WebApi.Common/TestingClient.cs#L110
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1258-297_2024-11-16_19_53_15[1].trx
Error:
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 82
at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context, ICallerContextFactory callerContextFactory) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 64
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
|
test
Process completed with exit code 1.
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build:
src/Application.Resources.Shared/Organization.cs#L8
Property 'AvatarUrl' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Ancillary.cs#L7
Property 'AgainstId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Organization.cs#L10
Property 'CreatedById' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Organization.cs#L22
Property 'Settings' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Ancillary.cs#L9
Property 'AuditCode' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Organization.cs#L12
Property 'Name' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Ancillary.cs#L11
Property 'MessageTemplate' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Organization.cs#L16
Property 'Id' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Ancillary.cs#L13
Property 'OrganizationId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
build:
src/Application.Resources.Shared/Ancillary.cs#L15
Property 'TemplateArguments' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-dotnet@v3, dorny/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test
Test report summary exceeded limit of 65535 bytes and will be trimmed
|