Simplest way to add Basic authentication to web.config with user/pass

后端 未结 1 391
栀梦
栀梦 2021-01-05 09:27

I\'m setting up an Azure API Management with with an ASP.NET WebApi 2 app behind it. API Management recommends setting up Basic auth between the API Management proxy and the

1条回答
  •  囚心锁ツ
    2021-01-05 10:29

    I ended up implementing BasicAuthentication as a HttpModule. I will update this answer later with the details.

    Edit:

    NuGet package: https://www.nuget.org/packages/Hexasoft.BasicAuthentication

    Source: https://github.com/hexasoftuk/Hexasoft.BasicAuthentication

    0 讨论(0)
提交回复
热议问题