asp.net 4.5 mixing forms and windows authentication

浪子不回头ぞ 提交于 2019-12-24 06:38:15

问题


I'm starting a new ASP.NET 4.5 web forms application and one of the requirements is that there is the user to login with windows authentication if available or login using forms authentication if the user is not a member of the domain.

Additionally, there are 2 scenarios, above is the first one for if the user is on the internal network the other is if the user is accessing the application externally (https). In that case a prompt for user name and password should be able to authenticate either user type, be they a windows user or forms/application user.

Are these two options even possible? If so, how would I accomplish this?

I have combed the web for a few days now and everything I've seen so far is dated so I'm not sure if they are the best solution or if they will even work.

TIA

来源:https://stackoverflow.com/questions/16405328/asp-net-4-5-mixing-forms-and-windows-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!