From 279aae3151f2147876a32cfddfd2b95f5d1f02e4 Mon Sep 17 00:00:00 2001 From: TomPallister Date: Mon, 17 Oct 2016 21:34:08 +0100 Subject: [PATCH] messing with dsl for stripping claims etc --- test/Ocelot.AcceptanceTests/AuthenticationTests.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/Ocelot.AcceptanceTests/AuthenticationTests.cs b/test/Ocelot.AcceptanceTests/AuthenticationTests.cs index c962b47b..1513b190 100644 --- a/test/Ocelot.AcceptanceTests/AuthenticationTests.cs +++ b/test/Ocelot.AcceptanceTests/AuthenticationTests.cs @@ -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 + { + new Claim("CustomerId", "123"), + new Claim("LocationId", "321") + } } }); })