298 questions
3
votes
1
answer
6k
views
IDX10214: Audience validation failed. Audiences: '[PII is hidden]'
I have web app using azureb2c for authentication. Have 3 APIs which are called by web app via Ocelot gateway using HttpClient. After authentication, when a request is made to an API via gateway the ...
4
votes
0
answers
2k
views
API Gateway Aggregated POST (Ocelot)
I'm using ocelot as an API Gateway, and I'm trying to send an HTTP POST request from the client, which would be sent to multiple services, and their responses should be aggregated and returned to the ...
1
vote
1
answer
3k
views
.net core 2.1 ocelot gateway returns 404
I am trying to implement the ocelot gateway in my application but it always returns 404 on all paths I configured in ocelot.json.
Whenever I make a GET on Postman using either the simple calls or the ...
2
votes
2
answers
4k
views
Access `DownstreamReRoute` within `DelegatingHandler` in Ocelot
Is it possible to access the DownstreamReRoute object within a DelegatingHandler in Ocelot? I have a DelegatingHandler instance and I'd like to slightly alter its behaviour based on the downstream ...
20
votes
1
answer
13k
views
Aggregation of data on API Gateway
I am working on microservice architecture and I want to aggregate data from two microservices.
For example, Frontend calls the API Gateway and API Gateway calls two microservices Customer and Order ...
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",
"...
2
votes
1
answer
2k
views
How do you transform a cookie value into a header value in Ocelot
I am using a micro-services architecture in dotnet core.
I am putting Ocelot in front as an api-gateway (BFF).
My main web application uses cookie auth with the jwt token in the cookie.
This is for ...
1
vote
2
answers
2k
views
Service discovery with eureka is not working in docker container
When I run my API gateway in docker container then it is not able to find my services which are registered in eureka.
API Gateway
-- ocelot.json
{
"ReRoutes": [
{
"...
5
votes
2
answers
3k
views
How to avoid port in Downstream url in ocelot?
port is getting added at the Downstream url. i want to access a micro service hosted in heroku. need to avoid port.
Please help.
Its working in local dev environment. But not working after ...
0
votes
1
answer
2k
views
Can I Reroute POST http request to a GET http request with Ocelot?
We have an ocelot gateway that reroutes our former WCF requests to newer .NET Core services. Some of the old requests are still going to the WCF service. This all works fine.
Now I want to Reroute a ...
0
votes
1
answer
1k
views
Retrieving UpstreamPathTemplate at runtime Ocelot Gateway
I would like to retrieve the "UpstreamPathTemplate" parameter at run time, to use in my Logs. Does anyone know how to do this, please?
4
votes
0
answers
1k
views
Ocelot QoS doesn't break circuit when n number of exception arises
I am carrying out a PoC on Ocelot Gateway to use for our microservices architecture. I have successfully used the Gateway to perform all the routing tasks uptil now.
It provides a QoS Service that ...
1
vote
1
answer
4k
views
TypeError: Failed to execute 'fetch' on 'Window': Failed to parse URL
I'm using MMLib.SwaggerForOcelot for gateway. in .Net core
I got this error. Any idea?
My Upstream and DownStream:
"SwaggerEndPoints": [
{
"Key": "skIndustry",
"Config": [
{
...
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 ...
0
votes
0
answers
391
views
Api-gateway production
I have some apis, and a api-gateway in front of them. It happens to be Ocelot
this is my configuration on my local environment:
"ReRoutes": [
{
"DownstreamPathTemplate": "/{everything}",
...
5
votes
1
answer
3k
views
Identityserver 4 and Ocelot
I'm trying to use Ocelot with IS4 following
https://ocelot.readthedocs.io/en/latest/features/authentication.html
When using
public void ConfigureServices(IServiceCollection services)
{
var ...
0
votes
0
answers
695
views
How to validate JWT from Azure AD B2C in ASP.NET Core 2.1 API after Ocelot API-Gateway
I use Ocelot as a API-Gateway for our micro-services which are build using ASP.NET Core 2.1.
Ocelot is authenticating the bearer token from AD B2C and calling my web API.
I configured my web service ...
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 ...
2
votes
1
answer
585
views
How to support the Kubernetes readiness/liveness probe with Ocelot API Gateway re-routes?
I'm trying to use Ocelot as a gateway to a K8S cluster and ideally would like to use the readiness/liveness probes. But every way I try to get Ocelot to handle the probe's endpoint results in issues:
...
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
}
...
1
vote
1
answer
1k
views
Should I register pod or kubernete service to consul on kubernetes cluster
I have deployed ocelot and consul on the kubernetes cluster. Ocelot acts as the api gateway which will distribute request to internal services. And consul is in charge of service discovery and health ...
1
vote
3
answers
13k
views
API Gateway Ocelot does not redirect
Making a micro-service architecture with Ocelot I started to build a test service in a separate solution. Everything is working and I can get the mock response to https://localhost:5101/service/stats/...
2
votes
1
answer
1k
views
Azure service fabric with Ocelot API gateway 404 error
I have created Azure service fabric application with several stateless and stateful services. All my statefull services are accessible via a Web Api stateless service. Now I have added Ocelot API ...
2
votes
0
answers
1k
views
identity server 4 and Ocelot integration With Docker
I am trying to integrate Ocelot API gateway with ID4. As per Ocelot documentation we can validate token with external id server https://whereyouridentityserverlives.com, Now, i'm integrating ID ...