我要实现这样的接口:活动目录asp.net窗体身份验证3
interface IMembershipWrapper
{
Guid GetUserId();
Guid GetUserId(string username, bool userIsOnline);
bool ValidateUser(string userName, string password);
…
}
对Active Directory和使用Unity注入它。
我可能会抛出一个NotImplementedException异常的某些方法,但你认为这通常是可能的吗?你推荐什么策略?
我知道我可以通过web.config配置'active directory asp.net forms authentication',如here所述。不幸的是,这不是一个选项。
凸轮你使用Windows身份验证? – LiverpoolsNumber9 2013-03-22 15:53:13