mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-14 04:28:38 +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 =
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user