Replies: 2 comments 2 replies
-
Hi Craigus! Did you check our AdministrationApi sample ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I did try it, but it didn't work. I can try it again to see if I get a different outcome. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a chapter in the documentation administration. But the information given isn't sufficient to enable administration, specifically the import and export of configuration endpoints that are available, but that require some form of authentication. The chapter says there are two options - an external identity server or the identity server bundled with Ocelot. As a basic test, I'm trying to use the internal identity server. However, all I get is a 400 (bad request) response.
I am trying with the Postman collection available in the Git repo. I have changed the client_id to "admin", the client_secret to "secret" and scope to "admin" as instructe in the doc.
I have the web API app that is running Ocelot listening on https://localhost:5003 and http://localhost:5103. The result is the same from both addresses. It makes no difference whether the BaseUrl is set in the ocelot.json.GlobalConfiguration.
The application is a .net 7 web API running from the IDE (Rider), with Ocelot 20.0.0 and Ocelot.Administration 20.0.0.
I don't know what to look for to get this working. This is just a test for now, but we will need to be able to use the configuration import and export in production, so this isn't just an exercise where the outcome doesn't matter.
Beta Was this translation helpful? Give feedback.
All reactions