mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-28 00:20:24 +08:00
fix: Fix scope validation in claims in tests
This commit is contained in:
parent
6e1cea7ebc
commit
0cd22aebd2
@ -60,7 +60,9 @@ public class TestFixture<TEntryPoint> : IAsyncLifetime
|
|||||||
var claims =
|
var claims =
|
||||||
new Dictionary<string, object>
|
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();
|
var httpClient = _factory?.CreateClient();
|
||||||
httpClient.SetFakeBearerToken(claims);
|
httpClient.SetFakeBearerToken(claims);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user