brockallen / BrockAllen.MembershipReboot

MembershipReboot is a user identity management and authentication library.
Other
743 stars 239 forks source link

Should I set authentication mode to forms or None? #682

Closed pmbanugo closed 7 years ago

pmbanugo commented 7 years ago

Should I set authentication mode to forms or None? If I set to none then it doesn't get redirected to my login page. what is the best approach to this?

brockallen commented 7 years ago

Are you using WIF or Katana for your cookie management?

pmbanugo commented 7 years ago

I'm using WIF

brockallen commented 7 years ago

Well, you can set it to None, but then no redirects happen to your login page (as you saw). IIRC, you can still the forms auth redirect and it will kick in and redirect your users (even though you're not using forms auth for actually logging in the users). The other option is to build a module to redirect on a 401 response.

pmbanugo commented 7 years ago

Ok thanks