Creating a proxy to another web api with Asp.net core

后端 未结 8 910
走了就别回头了
走了就别回头了 2020-11-29 19:39

I\'m developing an ASP.Net Core web application where I need to create a kind of \"authentication proxy\" to another (external) web service.

What I mean by authentic

8条回答
  •  难免孤独
    2020-11-29 20:03

    I ended up implementing a proxy middleware inspired by a project in Asp.Net's GitHub.

    It basically implements a middleware that reads the request received, creates a copy from it and sends it back to a configured service, reads the response from the service and sends it back to the caller.

提交回复
热议问题