I have created a brand new web form application from Visual Studio 2013 and set the following in the web.config file:
The solution it's not completely deactivating the whole authentication system.
The problem may be caused by the access control not correctly setting Login.aspx permission when using the FriendlyUrls module. So you must force the permissions also for the Login page by it's "friendly" name. In the folder where login page it's stored, possibly will already be a web.config file that you may setup like this:
<?xml version="1.0"?>
<configuration>
...
<location path="Login">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Login.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
...
</configuration>
Note: Take care with other pages currently in the same folder and setup accesses accordingly.
Here is how I got it to work.
Account folder except Login.aspxIdentityConfig and Startup.Auth under the App_Start folderIdentityModels under the Models folderStartup under the root folder of the applicationPage_Load and LogIn inside the Login.aspx code fileOpenAuthProviders in the Login.aspx markupappSettings section inside the web.config file<add key="owin:AutomaticAppStartup" value="false" />