I'm trying to set a global configuration in the GlobalConfiguration section in the ocelot.json file, I don't want to repeat the same configuration in every request e.g the sub claim is needed in each request so I always want to get it and the same thing for the AuthenticationOptions, I tried to put them in GlobalConfiguration section but I get this info on the console 'message: /api/Employee/CheckEmployeeAccess route does not require user to be authorized' i think this is mean the authentication is not working then I get an error in my internal service because I try to get the headers and it missing the sub header this is my startup file enter image description here and my ocelot.json file enter image description here
note: when I put the AuthenticationOptions AddHeadersToRequest in the Routs section it works fine.
2.1m questions
2.1m answers
60 comments
57.0k users