How to remove authentication from MVC project?

I am learning MVC from the web using Visual Studio 2013.

After completing my project and deploying it to the host through “publishing,” it worked perfectly (locally).

Although now the application issues an authentication form at login (after publication). locally it does not. I want to completely remove authentication, since the site (with all its pages) is open.

I apologize for the stupid question, but I searched and could not find clues about my problem for sure, perhaps due to complete ignorance on this side of the structure.

I tried to manually track things, I have a "startup.cs" that contains:

 public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);

        }
    }

This directs me to the file "Startup.Auth", which automatically has:

public void ConfigureAuth(IAppBuilder app)
        {

            // Enable the application to use a cookie to store information for the signed in user
            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Account/Login")
            });
            // Use a cookie to temporarily store information about a user logging in with a third party login provider
            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
...

Startup.cs, .

, , " Windows", " " DISABLED. "Startup.cs".

" ".

, , : .

+4
3

IIS .

, AuthorizeAttribute, /, AllowAnonymousAttribute. IIS . AuthorizeAttribute AllowAnonymous, - . .

, "" web.config

+3

, None web.config

  <system.web>
    <authentication mode="None" />
  </system.web>

Web.Release.config

0

web.config

<modules>
   <remove name="FormsAuthentication" />
</modules>
0

All Articles