MVC5 follows the same old authentication modes as MVC4.But when in Web.cofig file you change the
<authentication mode="none" />to <authentication mode="form" />
its stops working.
So to solve this issue add
Response.SuppressFormsAuthenticationRedirect = true
in the prescribed class.Normally authentication mode is set to none ,but in case you change you can resolve.
What the Response.SuppressFormsAuthenticationRedirect does is
Quote:
Gets or sets a value that specifies whether forms authentication redirection to the login page should be suppressed.
MVC5 does support both OpenID and Forms authentications.
Hope this helps..
Accept if you find value in this..
Happy Coding SD's :)