Ocelot客户端证书在下游
我正在使用Ocelot创建API网关。我需要提供客户证书,以便对下游微服务进行身份验证。 我实际上实施了一些代码以做到这一点。我添加了一个在所有InnerHandler上迭代的委托人,直到找到HttprequestHandler为止。比我添加MI客户端证书。 有更好的方法吗?
I'm creating an Api Gateway with Ocelot. I need to give a client certificate in order to authenticate to the downstream microservices.
I actually implemented some code in order to do this. I've added a DelegateHandler which iterates on all the InnerHandler until a HttpRequestHandler is found. Than I add mi client certificate.
Is there a better way for doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论