开发者

browser popup in windows authentication

开发者 https://www.devze.com 2023-02-09 23:59 出处:网络
I\'m using the windows authentication for get the name of the user using: User.Identity.Name; If the user is external to the domain the browser (not my site) shows a popup for the login.

I'm using the windows authentication for get the name of the user using: User.Identity.Name;

If the user is external to the domain the browser (not my site) shows a popup for the login. and after that is showed the my login page. I don't want it.

I want that if the user isn't logged, is showed a my page html for the login. How can i do it?

The web.config has

<authentication mode="Windows">
      <forms name="login" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" timeout="开发者_开发技巧30000" />
    </authentication>
    <authorization>
<allow users="*" />
      <deny users="?" />
    </authorization>


It sounds like what you really want is Forms Authentication where the form will authenticate to your Active Directory. Take a look at this link on MSDN:

Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication

As far as I know the forms tag you have in there is only for Forms authentication as per the MSDN documentation here: Authentication tag documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消