内部用户的Windows身份验证和外部用户的Login.aspx

时间:2013-05-22 20:05:39

标签: c# asp.net authentication

您好,我正在为内部用户使用以下代码

 <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authentication  />
    <authorization>
        <allow users="xyz\abc" />   
        <allow roles="Users" />
        <deny users="*" />
    </authorization>
     <identity impersonate="true" />
</system.web>

任何人都可以告诉我如何将其指向外部用户的Login.aspx吗?

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

<authorization>
      <allow users="*" />
    </authorization>
    <authentication mode="Forms">
      <forms loginUrl="Login.aspx" timeout="30" />
    </authentication>

当用户未经过身份验证时,它将重定向到Login.aspx