-
I created a simple test api, made sure it was working. Then downloaded Ocelot from NuGet and wired in. When I fired up the Web app, Ocelot broke the routes for the hello world welcome page |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello @sweeperq , API Gateways should be used in front of APIs. Why would you like to run it side-by-side? |
Beta Was this translation helpful? Give feedback.
-
@vitorelli The internal API I was developing at the time was in .Net, but I also planned on using external APIs. I Googled how to securely hide API credentials from a React front-end. There was a lot of bad advice to put it in certain files or obfuscate it, all of which can be unwrapped with the JavaScript debugger. Then I stumbled upon the terms "Reverse Proxy" and "API Gateway" which led me to Ocelot. After reading the project page and setup documentation it wasn't clear to me that Ocelot was meant to be a stand-alone application. I pulled it into my API project via NuGet thinking I could use specific URL patterns to wrap my API calls. However, I discovered that Ocelot took over all of the routing. I wasn't sure if I was missing a configuration step, or if it wasn't meant to be used this way (hence the above question). |
Beta Was this translation helpful? Give feedback.
-
If you want to hide API credentials, please take a look at https://github.com/openiddict/openiddict-core (OpenID Connect). This library can run side-by-side with other APIs and work pretty well with Ocelot. |
Beta Was this translation helpful? Give feedback.
If you want to hide API credentials, please take a look at https://github.com/openiddict/openiddict-core (OpenID Connect). This library can run side-by-side with other APIs and work pretty well with Ocelot.