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

This commit is contained in:
TomPallister
2016-10-29 19:45:50 +01:00
parent 3a1dd1f9bc
commit f7f4a392f0
46 changed files with 851 additions and 289 deletions

View File

@ -29,11 +29,11 @@ namespace Ocelot.AcceptanceTests
}
[Fact]
public void response_should_come_from_pre_http_responder_middleware()
public void response_should_come_from_pre_authorisation_middleware()
{
var configuration = new OcelotMiddlewareConfiguration
{
PreHttpResponderMiddleware = async (ctx, next) =>
PreAuthorisationMiddleware = async (ctx, next) =>
{
await ctx.Response.WriteAsync("PreHttpResponderMiddleware");
}
@ -62,11 +62,11 @@ namespace Ocelot.AcceptanceTests
}
[Fact]
public void response_should_come_from_pre_http_requester_middleware()
public void response_should_come_from_pre_http_authentication_middleware()
{
var configuration = new OcelotMiddlewareConfiguration
{
PreHttpRequesterMiddleware = async (ctx, next) =>
PreAuthenticationMiddleware = async (ctx, next) =>
{
await ctx.Response.WriteAsync("PreHttpRequesterMiddleware");
}