我有点希望能够进行混合窗口和表单身份验证。
//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 页面来检查身份验证?