1
0

Fixing UnitTests

This commit is contained in:
2022-08-07 20:57:11 +02:00
parent 6460142a65
commit d233bf6b0a
6 changed files with 21 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ namespace AMWD.Common.AspNetCore.BasicAuthentication
string username = plain.Split(':').First();
string password = plain[(username.Length + 1)..];
var principal = await validator.ValidateAsync(username, password, httpContext.GetRemoteIpAddress());
var principal = await validator.ValidateAsync(username, password, httpContext.GetRemoteIpAddress(), httpContext.RequestAborted);
if (principal == null)
{
SetAuthenticateRequest(httpContext, validator.Realm);