mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-23 00:52:51 +08:00
messing with dsl for stripping claims etc
This commit is contained in:
parent
2395736b6b
commit
279aae3151
@ -171,8 +171,10 @@ namespace Ocelot.AcceptanceTests
|
||||
},
|
||||
AddHeadersToRequest =
|
||||
{
|
||||
{ "CustomerId","Claims[CustomerId] > long" },
|
||||
{ "LocationId","Claims[LocationId] > int" }
|
||||
{ "CustomerId", "Claims[CustomerId] -> value" },
|
||||
{ "LocationId", "Claims[LocationId] -> value"},
|
||||
{ "UserId", "Claims[Subject] -> delimiter(|) -> value[0]" },
|
||||
{ "UserId", "Claims[Subject] -> delimiter(|) -> value[1]" }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -374,7 +376,12 @@ namespace Ocelot.AcceptanceTests
|
||||
Username = "test",
|
||||
Password = "test",
|
||||
Enabled = true,
|
||||
Subject = "asdads"
|
||||
Subject = "registered|1231231",
|
||||
Claims = new List<Claim>
|
||||
{
|
||||
new Claim("CustomerId", "123"),
|
||||
new Claim("LocationId", "321")
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user