Commit Graph

272 Commits

Author SHA1 Message Date
ab953f28fd realised the user can just set the region..delete time 2017-06-28 08:17:48 +01:00
0fa759c76c first acceptance test failing.. 2017-06-27 19:07:55 +01:00
e4e7fcc943 unit tests for cache clearing passing 2017-06-27 18:54:15 +01:00
ec0f3b32e4 Adding deserializer config for consul 2017-06-27 13:49:30 +01:00
a7eeadb4c6 fixing tests 2017-06-26 21:32:44 +01:00
20f6ebac2f Fixing tests 2017-06-26 21:08:47 +01:00
461ef6aa52 Merging upstream 2017-06-26 19:39:28 +01:00
239dcfb6bd working on region clearing cache, if using cachemanager back plance this would clear all servers in cluster 2017-06-26 19:10:20 +01:00
6209681b2c Adding code ##BROKEN TESTS## 2017-06-26 11:50:58 +01:00
26e7621798 fixed stupid double request bug from bad merge 2017-06-25 22:07:19 +01:00
4d3d3e1bc0 changes to get this going again 2017-06-25 21:46:59 +01:00
e96d66139f boost test coverage 2017-06-24 13:04:25 +01:00
6cdf4e67df can now use tokens from ocelot a on ocelot b when using admin area 2017-06-23 15:17:40 +01:00
2d94884c6f trying to get cluster working 2017-06-23 11:25:23 +01:00
6c1b95f95b fixed some broken tests due to recent merges! 2017-06-10 15:52:31 +01:00
190c967655 Merge branch 'master' into develop 2017-06-10 15:20:37 +01:00
6ff976f964 Merge pull request #104 from juancash/checking-identity-server
Identity Server - Check's issues with Audience and AllowedScopes
2017-06-10 15:16:15 +01:00
c8564d81e1 Merge pull request #97 from juancash/case-sensitive-routing-fix
Updated CharactersDontMatch method
2017-06-10 14:31:23 +01:00
4d8da86950 refactor: Refactor HttpClientHttpRequester Httpclient queue 2017-06-03 22:57:45 +08:00
0b09644d7e Fix Ratelimit every day, every minute, every hour logic bugs 2017-06-03 22:51:11 +08:00
02162dd7a6 RoundRobin loadblancer cause config error https://github.com/TomPallister/Ocelot/issues/103 2017-06-03 22:32:47 +08:00
efa68e9949 Allowed scopes checking added to AuthorisationMiddleware.
Acceptance tests added.
2017-05-31 18:27:28 +01:00
07671b8fdb Updated all IdentityServer packages. 2017-05-19 14:46:25 +01:00
7748262ecf Updated IdentityServer4.AccessTokenValidation package from 1.0.2 to 1.2.0.
The removed version had a known issue with the audience check.
2017-05-19 11:49:35 +01:00
ac49022274 Updated CharactersDontMatch method.
At this point the comparer must ignore case sensitive.
2017-05-09 19:02:26 +01:00
0507806aae Rough first go at test coverage. Might need tidying up. 2017-05-06 17:53:44 +01:00
24f7b9a171 UpstreamHttpMethod property (of class FileReRoute) changes from string to List<string>. 2017-05-05 11:47:28 +01:00
e91da1ac23 Add the possibility of set mutiple verbs in the UpstreamHttpMethod property.
Add UnitTests and AcceptanceTests to try this feature.
2017-05-04 10:56:16 +01:00
be3a2fb6ed Change to fix issue not setting content type header 2017-04-28 13:04:40 +01:00
1a76c9fbd9 Merge branch 'master' into develop 2017-04-23 15:40:50 +01:00
b8ee43c737 Adds the posibility of use final paths in the reroutes of configuration.json file.
Adds a unit test method to test the functionality.
2017-04-20 11:05:46 +01:00
80e728aa00 Made changes based on PR comments. Also added lots more tests! 2017-04-19 20:12:08 +01:00
878eacf1db Remove obsolete code 2017-04-18 15:35:54 +01:00
a1c6ab4ce4 Get rest of unit tests working 2017-04-18 15:16:27 +01:00
7c1a277147 Fixed some unit tests 2017-04-18 14:05:15 +01:00
8b93f44077 Fix request id middleware 2017-04-18 11:05:37 +01:00
da922c0e04 Initial mapping of request 2017-04-18 10:13:10 +01:00
eeb8f691c7 Very hacky proof of concept 2017-04-17 21:25:04 +01:00
637d93dc4b Use DiagnosticListner for middleware logging
Instead of each middleware having to log that it has started and ended,
the DianosticListner package allows for capturing of these events in a
lightwieght manner.

This commit implements this and removes unncessary logging from most
middleware.
2017-04-17 11:23:34 +01:00
c3cd181b90 added a new implementation that stores the ocelot config in consul kv store, had to change some major things and add cache settings as default 2017-04-16 19:35:59 +01:00
81e2e8a5be refactor : ConcurrentDictionary and ConcurrentQueue replace MemoryCache for cache HttpClient 2017-04-04 16:06:27 +08:00
f58da434ba Merge pull request #70 from MarcDenman/feature/updateLogging
Update logging
2017-03-19 15:57:28 +00:00
34be5a2955 Update middelware to use logging extension methods 2017-03-18 18:33:51 +00:00
ad81b7a305 Update OcelotLogger to accept name of class
OcelotLogger now has a property called "Name" intended to store the name
of the type for which the logger has been built for. This is intended to
keep the code a little bit cleaner and also allows for a few extention
methods for common logging scenarios
2017-03-18 18:30:09 +00:00
aa66fdddd3 Merge branch 'develop' of https://github.com/geffzhang/Ocelot into develop 2017-03-18 19:58:04 +08:00
faf6d40d73 refactor: TryAddSingleton replace AddSingleton 2017-03-18 19:56:08 +08:00
18d4013e61 Fix: This string.Equals Method Windows is normal, but running under Centos, due to a case of the string problem, seems to be. NET core implementation issues on a Linux system is case sensitive.
Modifications are as follows
            var applicableReRoutes = configuration.Data.ReRoutes.Where(r => string.Equals(r.UpstreamHttpMethod.Method.ToLower(), upstreamHttpMethod.ToLower(), StringComparison.CurrentCultureIgnoreCase));
2017-03-16 20:13:27 +08:00
82ecd667e0 Merged in develop 2017-03-14 21:50:03 +00:00
a3b387aeb1 Renamed ScopeName to ApiName, ScopeSecret to ApiSecret, and
AdditionalScopes to Allowed Scoped in order to be more consistent with
Identity Server naming conventions.
2017-03-14 16:54:55 -04:00
9774580c4e Change logging for various middleware
As part #35 logging is being checked. This commit changes the first four
middlewares within the pipeline to be more standardised.

Also added an extension method to easily print out the errors from a list
of errors.
2017-03-14 17:43:24 +00:00