mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 18:22:49 +08:00
updated readme
This commit is contained in:
parent
4fdd694003
commit
912063fe77
19
README.md
19
README.md
@ -1,3 +1,22 @@
|
|||||||
# Ocelot
|
# Ocelot
|
||||||
|
|
||||||
Attempt at a .NET Api Gateway
|
Attempt at a .NET Api Gateway
|
||||||
|
|
||||||
|
This project is aimed at people using .NET running
|
||||||
|
a micro services / service orientated architecture
|
||||||
|
that need a unified point of entry into their system.
|
||||||
|
|
||||||
|
In particular I want easy integration with
|
||||||
|
IdentityServer reference and bearer tokens.
|
||||||
|
|
||||||
|
We have been unable to find this in my current workplace
|
||||||
|
without having to write our own Javascript middlewares
|
||||||
|
to handle the IdentityServer reference tokens. We would
|
||||||
|
rather use the IdentityServer code that already exists
|
||||||
|
to do this.
|
||||||
|
|
||||||
|
Priorities
|
||||||
|
|
||||||
|
- Route configuration
|
||||||
|
- IdentityServer reference & bearer tokens
|
||||||
|
- Output Caching
|
@ -41,7 +41,6 @@ namespace Ocelot.Library.Middleware
|
|||||||
|
|
||||||
var downstreamUrl = _urlReplacer.ReplaceTemplateVariable(downstreamRoute.Data);
|
var downstreamUrl = _urlReplacer.ReplaceTemplateVariable(downstreamRoute.Data);
|
||||||
|
|
||||||
//make a http request to this endpoint...maybe bring in a library
|
|
||||||
using (var httpClient = new HttpClient())
|
using (var httpClient = new HttpClient())
|
||||||
{
|
{
|
||||||
var httpMethod = new HttpMethod(context.Request.Method);
|
var httpMethod = new HttpMethod(context.Request.Method);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user