Closed rusodan closed 6 months ago
@rusodan Add anonymous route to allow anonim traffic goes to authentication endpoint. Or exclude authentication endpoint from Ocelot config at all to get token/cookie and other auth artifact to allow your auth route working.
Expected Behavior
Get an unique result in one call from different microservices
Actual Behavior
The result of microservices is empty because are unauthorized. With microservices that has no security, the aggregation is working fine.
Example
If I try any microservice individually, they return the expected result (I have authentication in both microservices):
After login, I see the correct user (DanielCol) in the result of both microservice:
If I use the aggregation, I see empty result from both services:
Unauthorized error is raised in both:
Any way to fix this?
This is my custom aggregator:
The configuration of the aggregate:
And the microservices:
Another test
I added NTLM authentication to the net core app:
And I tried to pass those credentials to the aggregation but I don´t know how, may be in the AuthenticationMiddleware.
Specifications