Replies: 1 comment
-
Hi @BernhardJ, Unfortunately, there is no direct way to do this. But it occurs to me that you can implement your own services.AddTransient<IDownstreamSwaggerDocsRepository, YourOwnDownstreamSwaggerDocsRepository>(); You can find the original implementation here. However, you can still create a pull request and improve this package 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
First, yes i have read the issue #83 concerning authentication headers.
In my config, I have two or more SwaggerEndPoints.
Each SwaggerEndPoint is secured by BasicAuthentication. Each Endpoint uses anothe username / password.
During configuration (UseSwaggerForOcelotUI) I can add an array of KeyValuePair.
If I add a key Authorization an the value Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==, this is used for all swagger endpoints.
Is there a possibility to configure the key / value pair (array) for each swagger endpoint?
Or is there a possibility to add the header just before sending the request to the downstream swagger endpoint?
Thanks for answering my questions.
Beta Was this translation helpful? Give feedback.
All reactions