Turning off ASP.Net WebForms authentication for one sub-directory

前端 未结 7 2005
臣服心动
臣服心动 2020-12-15 07:21

I have a large enterprise application containing both WebForms and MVC pages. It has existing authentication and authorisation settings that I don\'t want to change.

7条回答
  •  被撕碎了的回忆
    2020-12-15 07:38

    In .NET 4.5 you can now set

    Response.SuppressFormsAuthenticationRedirect = true
    

    Check this page: https://msdn.microsoft.com/en-us/library/system.web.httpresponse.suppressformsauthenticationredirect.aspx

提交回复
热议问题