How to support NTLM authentication with fall-back to form in ASP.NET MVC?

后端 未结 3 1690
生来不讨喜
生来不讨喜 2020-12-13 15:43

How can I implement following in ASP.NET MVC application:

  1. user opens intranet website
  2. user is silently authenticated if possible
  3. if NTLM auth
3条回答
  •  情歌与酒
    2020-12-13 15:49

    This article might get you pointed in the right direction. Basically you have two apps in two virtual directories under the same host name. One app uses Forms authentication, one uses Windows. The one using Windows authentication creates a valid form authentication cookie and redirects to the second virtual directory.

    ASP.NET Mixed Mode Authentication

提交回复
热议问题