23 questions
1
vote
1
answer
3k
views
Re-routing Error asp.net Core with Ocelot (7.0.4)
"ReRoutes": [
{
"DownstreamPathTemplate": "/api/Agent/GetPagedAgents?page={page}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "agent.api",
"Port": 80
}
...
0
votes
1
answer
124
views
Problem with Windows Authentication in ASP.NET Core Middleware - Continuous Redirect to Login
I'm having an issue with middleware configuration in my ASP.NET Core application that runs on IIS with Windows Authentication enabled. My application uses proxy middleware to forward requests to ...
22
votes
3
answers
20k
views
Multiple JWT authorities/issuers in Asp.Net Core
I'm trying to get JWT bearer authentication in an ASP.Net API gateway using Ocelot to work with multiple authorities/issuers. One issuer is Auth0 and the other is an in-house authentication server ...
15
votes
2
answers
14k
views
ASP.NET Core Api-Gateway middleware
I am new to API gateways and have a question of understanding.
I try too put a series of (micro)services behind an endpoint.
For this purpose, I have set up an ASP.NET Core Application and added the ...
3
votes
1
answer
3k
views
How can I stop a request in Ocelot's PreAuthenticationMiddleware?
I have to do some checks on the request's jwt before ocelot authentication, so I'm doing them within the PreAuthenticationMiddleware like this:
var config = new OcelotPipelineConfiguration
{
...
2
votes
1
answer
5k
views
Ocelot not passing websockets to microservice
I'm trying to connect to SignalR hubs using Ocelot as proxy. SignalR is plugged in microservice that gateway passing through websockets traffic. Negotation via HTTP request is executed successfully, ...
2
votes
2
answers
5k
views
How set up Ocelot Api Gateway with Azure Active Directory
I followed this tutorial and managed to use api with Azure Active Directory
authentication & authorization.
However I would like to consume the api from behind the Ocelot Api Gateway.
I could ...
2
votes
3
answers
3k
views
Ocelot Identity Server: message: Request for authenticated route {api-path} by was unauthenticated
I am getting the following error in a docker container. I am trying to create api gateway using ocelot and authentication by identity server.
message: Client has NOT been authenticated for {api-path} ...
1
vote
2
answers
1k
views
DownstreamContext of context not found
I'm trying to add a custom middleware to add parameters to the query.
According to some online search, you can do something like this:
{
//PreQueryStringBuilderMiddleware occurs after ...
1
vote
0
answers
528
views
Retrieving client IP address in a microservice application with Ocelot gateway
I have a microservice application consisting of three microservices:
Gateway using Ocelot
Identity microservice
Core API microservice
However, when I try to retrieve the client's IP address from the ...
0
votes
1
answer
736
views
Delay when using ApiGateway
I'm a backend developer, and I've developed a WebApi service with Asp.Net Core.
I've also developed ApiGateway using Ocelot library.
From front side, front-end developers use React and Axios as HTTP ...
0
votes
1
answer
2k
views
How add Gateway base path on CreatedAtRoute Location Header - URL Rewrite
I have an Ocelot Gateway configuration as follow:
{
"ReRoutes": [
{
"DownstreamPathTemplate": "/api/{version}/{everything}",
"DownstreamScheme": "http",
"...