c# - Switching from Windows to forms authentication -
i've got windows authentication in 1 of web projects i've been working on. due other have forms authentication, want implement in particular project. i've followed article http://www.codeproject.com/articles/37558/windows-authentication-using-form-authentication , added new login page, after running project i've got redirected same default page used before.
here's changes made web.config:
<authentication mode="forms"> <forms loginurl="login.aspx"></forms> </authentication> <authorization> <deny users="?"/> </authorization>
what possible mistakes?
when switching forms authentication windows authentication, you'll need disable windows authentication in iis application. doesn't automatically when enable forms authentication in web.config.
you have both forms , windows authentication enabled in iis on application. believe iis default windows authentication in case , bypass login form.
to check that, can following:
- go iis
- locate application
- go authentication
- adjust following
- anonymous authentication: enabled
- asp.net impersonation: disabled
- basic authentication: disabled
- digest authentication: disabled
- forms authentication: enabled
- windows authentication: disabled
you can disable anonymous authentication if don't want landing page prior logging in well.
Comments
Post a Comment