1

I have a site on IIS configured to use Windows Authentication type. What I need to do is to have ability to skip displaying Windows credentials prompt for users which are connecting outside the domain. In the case of outside access I need to redirect user to custom login page on the same site (based on Windows Authentication). Can you please tell me if there any ability to do that?

UPDATE : site on IIS configured to use Windows Authentication type - and it shouldn't be changed

Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152
Andriy Zakharko
  • 1,623
  • 2
  • 16
  • 37
  • So you want to mix Windows and Forms Authentication? Related - http://stackoverflow.com/questions/2250921/mixing-forms-authentication-with-windows-authentication – jrummell Jan 24 '13 at 15:18
  • Actucally it's a bit different - I'm wondering if I could have a custom action (for instance, redirect to my logon page) for some users – Andriy Zakharko Jan 24 '13 at 15:23
  • I think use `form-authentication` at login page check the `ip-address` of the user from where the request is comming and if it is from your domain autometically log in him. – शेखर Jan 24 '13 at 15:32

1 Answers1

1

Change authentication mode your web.config

Something like:

   <authentication mode="Forms"> 
          <forms loginUrl="~/Account/LogOn" timeout="2880" /> 
   </authentication>
Emmanuel N
  • 7,350
  • 2
  • 26
  • 36