【发布时间】:2012-07-25 22:59:52
【问题描述】:
我有点希望能够进行混合窗口和表单身份验证。
//I want to check the browser the user is using
If(IE || chome)//I know IE and chrome can authenticate without a popup login box
{
//check windows authentication
if(generic AD account || AD user doesn't have permissions for this application)
{
//Redirect to login page
}
else
{
//Redirect to main page
}
}
elsif(IPad || android || Firefox)
{
//Redirect to login page
}
有没有办法创建一些自定义代码来使用 javascript 获取 windows AD 身份验证,或者我可以创建一个自定义 ashx 页面来检查身份验证?
【问题讨论】:
标签: active-directory windows-authentication asp.net-authentication custom-authentication