【发布时间】:2012-08-24 17:23:13
【问题描述】:
我正在尝试将新的 WCF Web API Preview 6 与基本身份验证一起使用。但真的不知道从哪里开始。
zanewill 显然也有同样的问题:
https://stackoverflow.com/questions/8304367/how-to-use-basic-authentication-with-wcf-web-api
但问题不是重复。我正在将它与 mvc 一起使用,但并不真正了解如何
Wcf Basic authentication
应该申请吗?
我已经试过了:
http://cacheandquery.com/blog/2011/03/customizing-asp-net-mvc-basic-authentication/
但不能让它工作。
不应该有MS的官方解决方案吗?
我必须注意,我们正在使用我们的自定义会员提供程序,并且我基本上只是想将 API 令牌传递给服务。所以无法使用内置的 Windows Basic Authentification。
【问题讨论】:
标签: wcf asp.net-mvc-3 wcf-security