75 Commits

Author SHA1 Message Date
TomPallister
f7f4a392f0 implemented adding claims as query strings to downstream route, removed some of the middleware injection optiosn as i have currently have no use case for them, general refactoring to use the OcelotMiddleware a bit more 2016-10-29 19:45:50 +01:00
TomPallister
3a1dd1f9bc fixed a bug where getting invalid parameter error if sending a steam content with no stream, now we try convert to byte array which the c# http client is happy to take if empty...or this error is caused because we are trying to use a stream when we shouldnt. 2016-10-28 22:50:00 +01:00
TomPallister
6be3c1cf73 Updated all packages and upgraded to 1.0.1 for asp.net 2016-10-26 21:49:07 +01:00
TomPallister
367fa327b3 bunch of refactoring 2016-10-26 21:38:44 +01:00
TomPallister
0455398199 fixed failing test where i had the logic wrong in the first place 2016-10-24 19:41:41 +01:00
TomPallister
9c771bf9e0 added benchmarks back in, renamed data repository and a few other things 2016-10-24 19:32:52 +01:00
TomPallister
d50f06fc3e Added benchmarks project back in..tho its pointless 2016-10-24 19:01:20 +01:00
TomPallister
4427ef459f more refactoring acceptance tests 2016-10-19 21:48:41 +01:00
TomPallister
9798cf01e5 refactoring acceptance tests..they need some tlc 2016-10-19 21:28:55 +01:00
tom.pallister
ab5d7fa33d allowing people to inject functions as custom middleware 2016-10-19 19:32:05 +01:00
tom.pallister
b8951c4698 Can authorise routes based on claims, there is also a claims transformation middleware 2016-10-19 11:56:05 +01:00
TomPallister
3285be3c73 more auth stuff...nowhere near done 2016-10-18 22:19:41 +01:00
TomPallister
0221ee9ccb started adding route authorisation 2016-10-18 21:38:18 +01:00
TomPallister
8b0ceeda5b removed library namespace 2016-10-18 19:10:09 +01:00
TomPallister
acfeeed86a removed ocelot website project from src and added a manual test project for this, renamed library project to just be ocelot 2016-10-18 19:04:46 +01:00
TomPallister
f79b76b414 reorganised project so its a bit more vertical for features 2016-10-18 18:52:43 +01:00
TomPallister
2e6640c6ef refactoring configuration code so its not so crazy, still need to work on the creator class 2016-10-18 18:32:34 +01:00
TomPallister
707f1d6908 renamed and removed some stuff that wasnt needed 2016-10-18 16:22:51 +01:00
TomPallister
84256e7bac Added ability to strip claims and forward to downstream service as headers 2016-10-18 15:51:56 +01:00
TomPallister
279aae3151 messing with dsl for stripping claims etc 2016-10-17 21:34:08 +01:00
tom.pallister
2395736b6b started working on stripping claims from token 2016-10-17 20:46:30 +01:00
tom.pallister
3d60602c7e Added a get authentication test, removed the infrastructure name space as it seemed pointless, started thinking about how to pass claims on with the request 2016-10-17 18:00:36 +01:00
TomPallister
ce84ad4fc2 Added tests for identity server reference tokens, general refactoring and come config validation 2016-10-16 20:28:23 +01:00
TomPallister
7289cd803b renamed provider to handler 2016-10-16 16:47:08 +01:00
TomPallister
320b442526 got identity server access token acceptance test working, created factory for choosing auth handlers, a creator for making the auth handlers, some general refactoring...next step is injecting the config for the auth handler creator in some way or just passing it in 2016-10-15 13:50:43 +01:00
TomPallister
34bac7e0d4 Added first authentiction code..we have a test that makes sure we are unauthenticed but i havent been able to get authenticated to work yet due to identity server usual madness when calling with their SDK! 2016-10-15 11:17:18 +01:00
tom.pallister
f545ba8620 removed thing that checks if route is authorised cos we dont need it 2016-10-14 20:08:09 +01:00
tom.pallister
8c194a365b fixed failing tests after upgrade 2016-10-14 13:30:34 +01:00
tom.pallister
6e61161406 updated to netstandard 1.4 and added authentication packages 2016-10-14 13:22:02 +01:00
TomPallister
7ae35f4ce3 added happy path tests for more middlewares 2016-10-13 19:59:12 +01:00
tom.pallister
52ba77f4d5 adding midleware tests 2016-10-13 19:10:11 +01:00
TomPallister
5492b70c87 Acceptance test for complex url combo...cant believe it acually worked 2016-10-12 20:42:43 +01:00
TomPallister
581c9d01b9 finished removing fake, all tests now working 2016-10-12 20:38:29 +01:00
tom.pallister
cdeb97731e tempoary commit while refactoring tests sorry bisect nazis 2016-10-12 19:34:47 +01:00
tom.pallister
cff130196f Removed the fake woop 2016-10-12 14:00:13 +01:00
tom.pallister
58393f07ec started adding authentication stack, thing that decides if we should be authenticated is in 2016-10-12 13:40:46 +01:00
TomPallister
1fddcf0836 regex for url match, means annoying constructor ocelot configuration object but cant work out a better way to do this at the moment 2016-10-09 15:40:13 +01:00
TomPallister
f8ea87c91b added a failing test for the url matcher on a case i didnt pick up on...might be time to start thinking about regex for this.... 2016-10-08 10:01:11 +01:00
TomPallister
a7a1143823 made a response middlware as terminating middleware... 2016-10-08 09:59:37 +01:00
TomPallister
8688c1eb6f removed flurl and made a request creator 2016-10-07 12:54:50 +01:00
tom.pallister
74a7f5d270 ripping out flurl...sorry flurl 2016-10-06 21:18:12 +01:00
TomPallister
27f012135d deloyed to azure web apps but not working because flurl is a bit wonky...will probably revert to http client 2016-10-05 21:35:54 +01:00
TomPallister
d86a52c1b8 renamed from service to repository, makes more sense i guess 2016-10-05 20:51:02 +01:00
TomPallister
f505fd6e90 renamed from service to repository, makes more sense i guess 2016-10-05 20:49:22 +01:00
TomPallister
229c0878ed Added some wrapper around the http context so i can at least pretend to access things from it without casting them 2016-10-05 20:46:00 +01:00
TomPallister
ab8407e7dc Now supports the same upstream url by difrenciating by http method. Also broke up the proxy middleware into three seperate pieces that do their thing and stick something into the OWIN context 2016-10-04 21:30:16 +01:00
TomPallister
741fcc644d Got the forwarding http content properly tests working, way to much going on in the requester 2016-09-19 16:26:44 +01:00
TomPallister
f3128cffe0 failing pesky test 2016-09-14 21:18:25 +01:00
TomPallister
0627e9399b brought in flurl and stated adding tests for the requester 2016-09-13 20:29:00 +01:00
TomPallister
8423199754 hacking around to get a POST acceptance test working, doesnt really mean anything tbh 2016-09-13 19:34:53 +01:00