验证HTTP .NET反对自主机的Web API服务的Windows客户端 [英] Authenticate HTTP .NET client against Self Host Web API Windows Service
问题描述
我发现通过对客户机/服务器实现伟大的文章自主机的Web API
<一href=\"http://www.asp.net/web-api/overview/older-versions/self-host-a-web-api\">http://www.asp.net/web-api/overview/older-versions/self-host-a-web-api
和我想知道关于这款机型的正确身份验证方法(自主机的Web API )。
我有没有使用承载令牌认证?还有什么其他的方法?
或者例如<一个href=\"http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api\">http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api
我有以下工作要求:
C#HTTP客户端必须连接到主机自API的Web服务的Windows和发送文件。
的连接必须是安全的100%。
块引用>因此,如何保护的WebAPI,任何线索?
解决方案你检查这个答案?
<一个href=\"https://stackoverflow.com/questions/9571445/asp-net-web-api-self-host-with-windows-authentication\">ASP.NET网页API自主机使用Windows身份验证
貌似是使用Windows身份验证合作得非常好。
BTW,承载它可能更灵活,但它取决于你的需求。
BTW(2):HTTPS是必须的,如果你想才达到安全性较高水平,但100%,看起来veeery高:)
I found great article about client/server implementation via Self Host Web API http://www.asp.net/web-api/overview/older-versions/self-host-a-web-api
And I am wondering about the correct authentication method for this model (Self Host Web API ).
Have I use a bearer token authentication? Is there any other method?
Or for example http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api
I have following working requirements:
C# http client must connect to Self Host Web API Windows Service and send files.
The connection must be secure 100%.
So how to protect WebAPI, any clue?
解决方案Have you checked this answer?
ASP.NET Web API Self-Host with Windows Authentication
Looks like is working quite well with Windows Authentication.
BTW, Bearer it's probably more flexible, but it depends on your needs.
BTW(2): HTTPS is a must if you want to achive an high level of security, but 100% looks veeery high :)
这篇关于验证HTTP .NET反对自主机的Web API服务的Windows客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!