fix: Fix scope validation in claims in tests

This commit is contained in:
Pc 2023-05-19 02:30:16 +03:30
parent 6e1cea7ebc
commit 0cd22aebd2

View File

@ -60,7 +60,9 @@ public class TestFixture<TEntryPoint> : IAsyncLifetime
var claims =
new Dictionary<string, object>
{
{ ClaimTypes.Name, "test@sample.com" }, { ClaimTypes.Role, "admin" },
{ ClaimTypes.Name, "test@sample.com" },
{ ClaimTypes.Role, "admin" },
{"scope", "flight-api"}
};
var httpClient = _factory?.CreateClient();
httpClient.SetFakeBearerToken(claims);