Questions tagged [ocelot]

Ocelot is a .NET API Gateway.

Ocelot is 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. However it will work with anything that speaks HTTP and run on any platform that ASP.NET Core supports.

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.

Ocelot is a bunch of middlewares in a specific order.

Ocelot manipulates the HttpRequest object into a state specified by its configuration until it reaches a request builder middleware where it creates a HttpRequestMessage object which is used to make a request to a downstream service. The middleware that makes the request is the last thing in the Ocelot pipeline. It does not call the next middleware. The response from the downstream service is retrieved as the requests goes back up the Ocelot pipeline. There is a piece of middleware that maps the HttpResponseMessage onto the HttpResponse object and that is returned to the client. That is basically it with a bunch of other features!

Home repo

Documentations

273 questions
-2
votes
1 answer

Ocelot Administration configuration POST request 415

I'm trying to make a POST request to edit the configuration of ocelot.json file. I'm using the https://ocelot.readthedocs.io/en/latest/features/administration.html API POST {adminPath}/configuration This overrwrites the existing configuration…
Alex
  • 1
-2
votes
1 answer

compare the expiration date in /etc/shadow to today's date and figure out which accounts have expired

root@node033:~# vi exppass root@node033:~# bash exppass exppass: line 7: syntax error: unexpected end of file root@node033:~# cat exppass cat /etc/shadow | while IFS=":" read col1 col2 col3 col4 col5 col6 col8; do echo $col3 $col8 if [ $expire -lt…
Ana C
  • 3
  • 1
-3
votes
1 answer

i get always 401 Error unauthorize identity server 4

I try to do central Authentication microservices using Identity server 4 and invoke another API microservices with Ocelot API gateway and all of them based on docker and docker-compose but always get unauthorize 401 Error with valid Access…
1 2 3
18
19