public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerfactory) { loggerfactory.AddConsole(minLevel: LogLevel.Warning); if (env.IsEnvironment("Development")) { ////app.UseBrowserLink(); app.UseErrorPage(new ErrorPageOptions { SourceCodeLineCount = 10 }); app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); } else { app.UseErrorHandler("/Home/Error"); } app.UseStaticFiles(); // Add cookie-based authentication to the request pipeline. app.UseIdentity(); if (env.IsEnvironment("Development")) { app.UseHardCodedAuthentication(); } else { // Add authentication middleware to the request pipeline. You can configure options such as Id and Secret in the ConfigureServices method. // For more information see http://go.microsoft.com/fwlink/?LinkID=532715 // app.UseFacebookAuthentication(); // app.UseGoogleAuthentication(); // app.UseMicrosoftAccountAuthentication(); // app.UseTwitterAuthentication(); } app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller}/{action}/{id?}", defaults: new { controller = "Home", action = "Index" }); }); }