Fix user_name.

This commit is contained in:
Haiping Chen 2024-07-26 22:38:28 -05:00
parent 3aa151240c
commit 76d5dcb82f
3 changed files with 3 additions and 3 deletions

View file

@ -12,6 +12,6 @@ public class PageActionArgs
public string Url { get; set; } = null!;
public bool OpenNewTab { get; set; } = false;
public bool WaitForNetworkIdle = true;
public bool WaitForNetworkIdle { get; set; } = true;
public float? Timeout { get; set; }
}

View file

@ -20,7 +20,7 @@ public class UserIdentity : IUserIdentity
[JsonPropertyName("user_name")]
public string UserName
=> _claims?.FirstOrDefault(x => x.Type == "name")?.Value!;
=> _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Name)?.Value!;
public string Email
=> _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Email)?.Value!;

View file

@ -17,7 +17,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Playwright" Version="1.45.0" />
<PackageReference Include="Microsoft.Playwright" Version="1.45.1" />
<PackageReference Include="Selenium.WebDriver" Version="4.23.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.61" />
</ItemGroup>